|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28623 Image size compressed SQ, HQ (JPEG) problems
Submitted: 2004-06-03 15:30 UTC Modified: 2004-06-04 15:56 UTC
From: chris at chris dot ru Assigned:
Status: Closed Package: GetImageSize related
PHP Version: 4.3.5 OS: FreeBSD
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: chris at chris dot ru
New email:
PHP Version: OS:


 [2004-06-03 15:30 UTC] chris at chris dot ru
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:
info 512x354 14 KB

Image from camera:
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);


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-04 15:53 UTC]
Works fine with latest CVS. 
 [2004-06-04 15:56 UTC] chris at chris dot ru
:-( Not work... I test it, and say you :-)
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 25 15:01:29 2024 UTC