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 624275 - Image saved from google docs generates a 'gimp-image-set-resolution' error message
Image saved from google docs generates a 'gimp-image-set-resolution' error me...
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Plugins
2.6.8
Other All
: Normal minor
: 2.6
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2010-07-13 19:39 UTC by Michael Dovel
Modified: 2010-07-13 20:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Image from google docs (320.59 KB, image/png)
2010-07-13 19:39 UTC, Michael Dovel
Details

Description Michael Dovel 2010-07-13 19:39:52 UTC
Created attachment 165829 [details]
Image from google docs

When you try to open a .png file downloaded from google DOCS 

The ERROR Message
"""
Calling error for procedure 'gimp-image-set-resolution':
Procedure 'gimp-image-set-resolution' has been called with value '-1.#IND00' for argument 'yresolution' (#3, type gdouble). This value is out of range.
"""

Is produced


The image file was downloaded by...
1) right clicking on a pdf file in google docs
2) clicking on save image as.
Comment 1 Sven Neumann 2010-07-13 20:17:00 UTC
The image has 0,0 as resolution. We should catch that and not set the resolution at all.
Comment 2 Sven Neumann 2010-07-13 20:20:42 UTC
Fixed and pushed to both branches:

commit ff221e679c2dd17be9cd55d3d980859d656bfccd
Author: Sven Neumann <sven@gimp.org>
Date:   Tue Jul 13 22:20:15 2010 +0200

    Bug 624275 - Image saved from google docs generates a 'gimp-image-set-resolu
    
    Only set the image resolution if the resolution in the PNG file
    is greater than zero.