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

From: Date: Fri, 04 Jun 2004 13:56:10 +0000
Subject: #28623 [Csd]: Image size compressed SQ, HQ (JPEG) problems
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-60364@lists.php.net to get a copy of this message
ID: 28623 User updated by: chris at chris dot ru Reported By: chris at chris dot ru Status: Closed Bug Type: GetImageSize related Operating System: FreeBSD PHP Version: 4.3.5 New Comment: :-( Not work... I test it, and say you :-) Previous Comments: ------------------------------------------------------------------------ [2004-06-04 15:53:30] iliaa@php.net Works fine with latest CVS. ------------------------------------------------------------------------ [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 (#60364) next »