#11784 [Com]: read_exif_data fails on big thumbnails
| From: | bikini-free1382 at hotmail dot com | Date: | Tue, 20 Jul 2004 15:08:08 +0000 |
| Subject: | #11784 [Com]: read_exif_data fails on big thumbnails | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-63001@lists.php.net to get a copy of this message | ||
ID: 11784
Comment by: bikini-free1382 at hotmail dot com
Reported By: kjarri at theriak dot is
Status: Closed
Bug Type: *Graphics related
Operating System: Linux
PHP Version: 4.0.6
New Comment:
<a href=http://69-slimsmoking-down.da.ru>bikini
free</a>
Previous Comments:
------------------------------------------------------------------------
[2001-08-03 21:53:37] sniper@php.net
Fixed in CVS. If thumbnail is invalid, a warning is produced
but all the other data is still returned.
--Jani
------------------------------------------------------------------------
[2001-06-28 13:13:58] kjarri at theriak dot is
I'm having problem reading exif data from pictures produced by Fujifilm
FinePix6800 ZOOM. While reading exif data from the jpegs i get fatal
error in PHP complaining about illegal thumbnailsize.
After reading the source for the exif module i saw a notice that
mentioned that thumbnails embedded in the exif header are not allowed
to exceed 64k in size. Now i'm not sure about the specification of the
picture in question, the embedded thumbnail might exceed this limit,
but a sample picture that produces the error can be downloaded from
http://is-mirror.kjarri.net/files/DSCF0085.JPG
(around 500k in size).
It would be nice if the read_exif_data() function could handle images
like this and return all other data that is correct according to the
EXIF specification instead of failing completely.
My PHP setup:
./configure
--x-libraries=/usr/X11/lib/
--x-includes=/usr/X11/include/
--with-mysql=/superstore/progs/mysql/
--with-apxs=/superstore/progs/apache/bin/apxs
--enable-trans-sid
--with-pgsql=/superstore/progs/pgsql/
--with-interbase=/superstore/progs/interbase/
--enable-ftp
--enable-exif
--with-gd=/usr/local/
--with-ttf=/usr/local/
--enable-gd-imgstrttf
--with-xpm-dir=/usr/local/
--with-jpeg-dir=/usr/local/
--with-sybase=/usr/local/freetds
--with-png-dir=/usr/local/
--with-zip
--with-zziplib=/usr/local/
--with-zlib-dir=/usr/local/
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=11784&edit=1