ID:               30672
 Updated by:       [EMAIL PROTECTED]
 Reported By:      bosse at mellberg dot org
-Status:           Open
+Status:           Closed
 Bug Type:         *Graphics related
 Operating System: *
 PHP Version:      4.3.9, 5.0.2
 Assigned To:      helly
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

After trying something more i actually really found a problem. Newer
Exif versions allow data storage at places older versions didn't allow
for JPEG images. Removing that check fixed your problem. Since the
check is in general not really necessary i simply allow such out of
space data for JPEG, too. 

However as already mentioned you could have got your thumbnail data
anyway.



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

[2004-11-04 21:12:41] [EMAIL PROTECTED]

Reopen and set the summary to the real cause.

You can already get your thumbnails when ignoring the warnign.

------------------------------------------------------------------------

[2004-11-04 00:57:29] [EMAIL PROTECTED]

Well it looks like you exchanged working/non working, however both are
pretty fine using HEAD. If you want to verify yourself then doenload
php source and edit ext/exif/exif.c and change the line "#undef
EXIF_DEBUG" into "#define EXIF_DEBUG". Then you'll see all details of
the decoding process.

The test script i used was: 
php -r 'file_put_contents($argv[1].".thumb.jpg",
exif_thumbnail($argv[1]));' filename.jpg

and then i looked at the generated file and both are fine.
To Exifer i can only say it seems to correctly rewrite the info as
expected.

If you find an image that really doesn't work of it is specific to
older php versions then feel free to reopen.

------------------------------------------------------------------------

[2004-11-04 00:09:11] bosse at mellberg dot org

Example pictures can be found here:
http://www.mellberg.org/exif_thumbnail

------------------------------------------------------------------------

[2004-11-03 21:12:46] [EMAIL PROTECTED]

I need such an image because i don't have Exifer.

------------------------------------------------------------------------

[2004-11-03 15:15:03] bosse at mellberg dot org

Description:
------------
Using the script in the documentation for exif_thumbnail, you can
extract the thumbnail image from the exif-header. If you alter the
exif-information (f.ex. delete the thumbnail and add it again) using
Exifer, the exif_thumbnail function will no longer be able to find the
thumbnail.

According to the author of Exifer, this is likely because
exif_thumbnail doesn't handle offsets to the thumbnail properly.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=30672&edit=1

Reply via email to