Bug #13323 Updated: read_exif_data fails with images produced by FujiFilm 4900Zoom
| From: | mfischer@php.net | Date: | Sat, 15 Sep 2001 23:58:00 +0000 |
| Subject: | Bug #13323 Updated: read_exif_data fails with images produced by FujiFilm 4900Zoom | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-66036@lists.php.net to get a copy of this message | ||
ID: 13323
Updated by: mfischer
Reported By: marc_thomas@hotmail.com
Old Status: Open
Status: Feedback
Bug Type: *Graphics related
Operating System: Windows 2000 Pro
PHP Version: 4.0.6
New Comment:
Please try a recent snapshot from http://snaps.php.net:8000/
- Markus
Previous Comments:
------------------------------------------------------------------------
[2001-09-15 19:35:05] marc_thomas@hotmail.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
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13323&edit=1