ID: 30672 Updated by: [EMAIL PROTECTED] -Summary: exif_thumbnail fails after image has been edited in Exifer Reported By: bosse at mellberg dot org -Status: Closed +Status: Open Bug Type: *Graphics related Operating System: * PHP Version: 4.3.9, 5.0.2 Assigned To: helly New Comment:
Reopen and set the summary to the real cause. You can already get your thumbnails when ignoring the warnign. Previous Comments: ------------------------------------------------------------------------ [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