|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10615 JPEG size info not properly returned on unmodified JPEG images from digicam
Submitted: 2001-05-02 12:58 UTC Modified: 2001-05-16 02:54 UTC
From: htmlspinnr at htmlspinnr dot org Assigned:
Status: Closed Package: GetImageSize related
PHP Version: 4.0.5 OS: Linux 2.4.4 (Redhat 7.0)
Private report: No CVE-ID: None
 [2001-05-02 12:58 UTC] htmlspinnr at htmlspinnr dot org
Issue noted in 4.0.5 and 4.0.6-dev. Currently running 4.0.6-dev

Location where "issue" can be viewed.,%202001%20-%20easter%20eve%20and%20prego%20pics/

On demo page - thumbnails in left frame should display image dimensions. Since 4.0.5, image info is only obtainable if image file has been modified in any way. If images have been pulled straight from digicam, information cannot be displayed.

Script source can be viewed here:

Find function GetDimension, this is where GetImageSize is called.

Function worked properly in 4.0.4pl1, so I'm not blaming code.

configure string:
./configure '--prefix=/usr' '--with-mysql=/usr' '--with-apxs' '--sysconfdir=/etc' '--with-config-file-path=/etc' '--enable-inline-optimization' '--enable-ftp' '--enable-ssl' '--enable-imap' '--with-gd' '--with-gd-dir=/usr/lib' '--with-jpeg' '--with-png' '--with-jpeg-dir' '--with-png-dir' '--with-freetype-dir=/usr/local/lib' '--enable-gd-native-ttf'

other runtime info (incl. compile string, etc.) ( a file containing <? PHP_INFO ?>)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-02 19:43 UTC]
That example script of your doesn't have any getimagesize()
calls in it. So please add one example script into this bug 
report that doesn't work.


 [2001-05-03 12:46 UTC] htmlspinnr at htmlspinnr dot org
Try this instead (updated my original code to use ImageMagick instead - 
slower, but functional).

I created a few files which may help. 

Script 1 calls an image that doesn't work properly. Script 2 calls an image 
from the same camera, however the image was rotated using a lossless method 
before it was uploaded. It was, however, modified none the less.

Script 1:,%202000%20-%

Script 1's source:,%202000%20-%

Script 2:,%202000%20-%

Script 2's source:,%202000%20-%

Hope this helps, and sorry for changing out from under you.

 [2001-05-16 00:53 UTC]
Should be fixed in CVS now.


 [2001-05-16 02:54 UTC] htmlspinnr at htmlspinnr dot org
All fixed. Both links now work properly again.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 13:01:31 2024 UTC