php.net |  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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: chris at chris dot ru
New email:
PHP Version: OS:

 

 [2004-06-03 15:30 UTC] 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);




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-04 15:53 UTC] iliaa@php.net
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: Sat Dec 21 15:01:29 2024 UTC