fix for Exif errors on non-Exif JPEGs

Think you found a bug in getID3()? Post here with details.

fix for Exif errors on non-Exif JPEGs

Postby krorick » Wed Jun 09, 2010 10:57 am

RE version 1.7.9-20090308

I'd like to propose a change to the module.graphic.jpg.php library file.

The current version will attempt to parse non-exif images and generates a confusing (to the end user anyway) error.

My solution is to add a check on line 57:

current: if (function_exists('exif_read_data')) {
fix: if (function_exists('exif_read_data') && strpos ($imageinfo['APP1'], 'Exif') === 0) {
krorick
User
 
Posts: 1
Joined: Wed Jun 09, 2010 10:48 am

Return to Bug Reports

Who is online

Users browsing this forum: Google [Bot] and 1 guest