#28623 [Opn->Csd]: Image size compressed SQ, HQ (JPEG) problems

From: Date: Fri, 04 Jun 2004 13:53:31 +0000
Subject: #28623 [Opn->Csd]: Image size compressed SQ, HQ (JPEG) problems
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-60363@lists.php.net to get a copy of this message
ID: 28623 Updated by: iliaa@php.net Reported By: chris at chris dot ru -Status: Open +Status: Closed Bug Type: GetImageSize related Operating System: FreeBSD PHP Version: 4.3.5 New Comment: Works fine with latest CVS. Previous Comments: ------------------------------------------------------------------------ [2004-06-03 15:30:33] chris at chris dot ru Description: ------------ Image size, compressed by digital cameras (JPG) - HQ, SQ and other, php can't show image size... For example: Image after compression Ulead Smart Saver: http://www.chris.ru/photos/show.php?id=25 info 512x354 14 KB Image from camera: http://www.chris.ru/photos/show.php?id=212 info x 49.8 Êá Reproduce code: --------------- umask (0011); $uploaddir = "./photos/"; $userfile = date("d.m.Y_H.i.s"); $userfile = "$userfile"."$Nick"; copy($file, "$uploaddir"."$userfile".".jpg"); list($width, $height, $type, $attr) = getimagesize($uploaddir.$userfile.".jpg"); $sizefile = filesize($uploaddir.$userfile.".jpg"); $sizefile = $sizefile/1024; $sizefile = round($sizefile,1); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28623&edit=1

« previous php.bugs (#60363) next »