GNOME Bugzilla – Bug 166248
GIMP fails to open JPEGs resized and saved with Picasa 2
Last modified: 2008-01-15 12:47:11 UTC
1. Open any JPEG image in Picasa 2 (Windows only, freely obtainable at www.picasa.com). To open the image, use Picasa's File->Import From... menu item and navigate the ensuing page to the spot on your disk where the image is stored. Import the image into a new Picasa library. 2. Save the image to a new location on your disk by selecting the image in your Picasa library and going to File->Export Picture To Folder... In the ensuing window, be sure to choose the Resize option, resizing it to smaller than the original. 3. Open the newly exported image in GIMP. You'll receive a message saying that jpeg.exe has crashed, and then another saying GIMP may have been destabilized, and to restart it. I would note that these images open fine in other applications such as Firefox and Irfanview. After I commit this bug, I will attempt to attach one crashing JPEG image, and a screenshot of the error, for what it's worth.
Created attachment 36966 [details] A JPEG image that GIMP fails to open. Open this image in the GIMP/Win 2.0 or above, it will fail to open and crash jpeg.exe.
Created attachment 36967 [details] Screenshot of GIMP crash when attempting to open Picasa JPEG. For what it's worth, a screenshot of the little Windows dump when a Picasa-saved JPEG fails to open.
Could be a duplicate of bug 164053.
There are some strange things in the EXIF block of this file. For example, the EXIF version is set to 12.20 instead of 2.10 or 1.20. The orientation is also unusual. If this strange EXIF information is produced by Picasa 2, then this looks like a bug in Picasa and it should be reported to its developers. However, the GIMP should not crash when attempting to open such an image. Although this is most probably a duplicate of bug #164053, I would like to keep this bug open until we can check that this image can be read without problems after upgrading libexif in the Windows version. Note that the image can be read on Linux (using the newer libexif), but its unusual orientation tag triggers another bug: the user is asked if the image should be rotated, but the result is the same regardless of whether the user presses "OK" or "Cancel". That dialog should not appear.
The exif block in this file definitely contains some bogus values, including the orientation. Anyway, I have made a small change in cvs HEAD that prevents the dialog from appearing in this situation. 2005-02-04 Bill Skaggs <weskaggs@primate.ucdavis.edu> * plug-ins/jpeg/jpeg-exif.c: check validity of orientation value before using, see bug #166248.
This bug report should probably set to NEEDINFO until the bug reporter has checked if updating libexif fixes the problem.
Marco, please add a comment here when the next version of the GIMP for Windows is released, if you have the opportunity to try in on Picasa images.
Link to the corresponding entry in the Picasa bugtracking forum: http://forums.picasa.com/viewtopic.php?t=5092
The image opens fine with libexif 0.6.x. in my gimp-2-2 build.
*** This bug has been marked as a duplicate of 164053 ***