ID: 11784
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: *Graphics related
Operating System: Linux
PHP Version: 4.0.6
New Comment:

Fixed in CVS. If thumbnail is invalid, a warning is produced
but all the other data is still returned.

--Jani


Previous Comments:
------------------------------------------------------------------------

[2001-06-28 13:13:58] [EMAIL PROTECTED]

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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to