#28623 [NEW]: Image size compressed SQ, HQ (JPEG) problems
| From: | chris at chris dot ru | Date: | Thu, 03 Jun 2004 13:30:34 +0000 |
| Subject: | #28623 [NEW]: Image size compressed SQ, HQ (JPEG) problems | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-60324@lists.php.net to get a copy of this message | ||
From: chris at chris dot ru
Operating system: FreeBSD
PHP version: 4.3.5
PHP Bug Type: GetImageSize related
Bug description: Image size compressed SQ, HQ (JPEG) problems
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 bug report at http://bugs.php.net/?id=28623&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28623&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28623&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28623&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28623&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28623&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28623&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28623&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28623&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28623&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28623&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28623&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28623&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28623&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28623&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28623&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28623&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28623&r=float