GNOME Bugzilla – Bug 485021
Error message when opening a jpeg
Last modified: 2008-10-30 19:59:56 UTC
Please describe the problem: Whenever I open a jpeg I receive the following error message: Image resolution is out of bounds, using the default resolution instead. This happens with every jpeg, png's are working (haven't tried other file formats). The actual size of the image don't matter, I've tried to open different filesizes from very small resolutions up to very big resolutions. I'm using Kubuntu Gutsy Beta with all the updates, and installed Gimp from the Gutsy Repos. Steps to reproduce: 1. Install Gutsy 2. Install Gimp 3. Open a jpeg file Actual results: I receive the error message "Image resolution is out of bounds, using the default resolution instead." After this, the image is opened. Expected results: I would expect Gimp to just open the file without an error message. Does this happen every time? Sorry, but yes. Other information: Not at th moment.
Well, your JPEG files are broken and GIMP needs to make assumptions about the resolution in order to load the file properly. It would not be nice to silently change data without informing the user.
Hello, thank you Sven - my mistake. Made some screenshots with KSnapshot and saved them as jpeg-files. Had trouble with all of them, opening this files in Gimp resulted in the above mentioned error message. Now I tried to save a screenshot as png-file, and I can open it with Gimp without any problems. Thank you very much, and sorry for this unneccessary report. Regards, rpw
Please report this problem to the KSnapshot developers then. They might want to fix the routine that creates these JPEG files.
*** Bug 498579 has been marked as a duplicate of this bug. ***
For an image with resolution 0 it seems appropriate to just ignore the resolution setting and silently use the default resolution. I have changed this in both branches now: 2007-12-02 Sven Neumann <sven@gimp.org> * plug-ins/jpeg/jpeg-load.c (jpeg_load_resolution): only set the resolution if X_density and Y_density are not zero. Otherwise the default resolution would be used anyway and the user sees an annoying and confusion warning.