php.net |  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:
MUST BE VALID
Solve the problem:
14 - 9 = ?
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   - http://marct.com/DSCF0023.JPG
1280x960  - http://marct.com/DSCF0022.JPG
1600x1200 - http://marct.com/DSCF0021.JPG
2400x1800 - http://marct.com/DSCF0020.JPG

Sample Script:
<?php
$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

Marc

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-15 19:58 UTC] mfischer@php.net
Please try a recent snapshot from http://snaps.php.net:8000/

- Markus
 [2001-10-08 09:07 UTC] sander@php.net
No feedback. Closing. Please reopen if your problem is not fixed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 20:01:28 2024 UTC