After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 485021 - Error message when opening a jpeg
Error message when opening a jpeg
Status: RESOLVED NOTABUG
Product: GIMP
Classification: Other
Component: Plugins
2.4.x
Other All
: Normal normal
: ---
Assigned To: GIMP Bugs
GIMP Bugs
: 498579 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-10-09 12:47 UTC by Ralf Weyer
Modified: 2008-10-30 19:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ralf Weyer 2007-10-09 12:47:49 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.
Comment 1 Sven Neumann 2007-10-09 12:54:36 UTC
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.
Comment 2 Ralf Weyer 2007-10-09 13:43:07 UTC
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
Comment 3 Sven Neumann 2007-10-09 14:22:26 UTC
Please report this problem to the KSnapshot developers then. They might want to fix the routine that creates these JPEG files.
Comment 4 Sven Neumann 2007-11-20 19:46:46 UTC
*** Bug 498579 has been marked as a duplicate of this bug. ***
Comment 5 Sven Neumann 2007-12-02 14:46:16 UTC
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.