ID:               28623
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to