|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13323 read_exif_data fails with images produced by FujiFilm 4900Zoom
Submitted: 2001-09-15 19:35 UTC Modified: 2005-02-01 23:02 UTC
From: marc_thomas at hotmail dot com Assigned:
Status: Closed Package: EXIF related
PHP Version: 4.0.6 OS: Windows 2000 Pro
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
6 + 4 = ?
Subscribe to this entry?

 [2001-09-15 19:35 UTC] marc_thomas at hotmail dot com
Image produced by FujiFilm 4900Zoom

Examples of error messages. The number of bytes in the error messages varies from image to image.

With an image taken at 640x480 I get error:
Fatal error: Illegal thumbnail size in E:\MyFiles\web\rucc\oldtest.php on line 12

With an image taken at 1280x960 I get error:
FATAL: emalloc(): Unable to allocate -266076160 bytes 

With an image taken at 1600x1200 I get error:
FATAL: emalloc(): Unable to allocate -1222377472 bytes 

With an image taken at 2400x1800 I get error:
FATAL: emalloc(): Unable to allocate -500891648 bytes 

It would appear that it is falling over in function 'ExtractThumbnail' that can be found in exif.c

I have tried the same php script with an image taken by an Olympus camera and it works without problem.

All the other Exif reading utilities I have work equally well with Olympus and Fuji images.

Some sample images
640x480   -
1280x960  -
1600x1200 -
2400x1800 -

Sample Script:
$exif = read_exif_data ('DSCF0023.JPG');

I am using the pre-compiled version of PHP, 4.0.6 with IIS5.
The only change I have made to the php.ini file it to un-comment the line 'extension=php_exif.dll'

I would be of great benefit if I could use this php function with these images and will help in any way I can to fix the problem.

Thank You



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-15 19:58 UTC]
Please try a recent snapshot from

- Markus
 [2001-10-08 09:07 UTC]
No feedback. Closing. Please reopen if your problem is not fixed.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed May 25 18:05:44 2022 UTC