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 323943 - convert to jpeg format lost the exif information
convert to jpeg format lost the exif information
Status: RESOLVED FIXED
Product: gthumb
Classification: Other
Component: general
2.9.x
Other Linux
: Normal normal
: ---
Assigned To: Paolo Bacchilega
Paolo Bacchilega
Depends on:
Blocks:
 
 
Reported: 2005-12-13 01:41 UTC by Roumano
Modified: 2008-04-07 18:52 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Roumano 2005-12-13 01:41:33 UTC
Version details: 2.6.8
Distribution/Version: gentoo

exif information will be lost if we do a "outils --> convertir le format" ( may
be tools, convert to format in english ) to jpeg.

I don't understand why ( the jpeg support the EXIF info ) and the option will be
greater to recompress some thousand pictures
Comment 1 Paolo Bacchilega 2006-02-18 15:17:22 UTC
do you mean that converting jpegs to jpegs doesn't preserve exif info?
Comment 2 Roumano 2006-02-19 13:53:21 UTC
When we do a convert to jpeg, the exif information will be remove on the new image

After check, i think ( but not sure ) it related will this bug : #38503 :
    - Unfortunately the jpegtran utility does not preserve the location of the EXIF data, which causes some applications (apparently) to fail.
Comment 3 Michael Chudobiak 2006-11-05 10:36:42 UTC
Confirmed in CVS HEAD.

"Tools > Scale Images" and "Tools > Convert Format" do not preserve exif info. (You would use Convert Format to "convert" jpg to jpg when you wanted to adjust the compression settings.)

The Image > Resize and other "Image" tools do preserve Exif info (except for the orientation tag, which has to be reset to top-left, and dimension tags if it's resized).

For example, src/gth-browser.c and src/gth-viewer.c have code snippets like this to preserve exif data in jpegs (when using "Image" tools):

 if (priv->exif_data != NULL)
                jpeg_data_set_exif_data (jdata, priv->exif_data);

        jpeg_data_save_file (jdata, filename);
        jpeg_data_unref (jdata);

        write_orientation_field (filename, GTH_TRANSFORM_NONE);

Something similar is needed in the code for "Tools > Scale Images" and "Tools > Convert Format" (the orientation tag reset may or may not be needed - not sure yet).

- Mike
Comment 4 mail 2008-04-06 15:58:34 UTC
I just wanted to chip in and confirm that this is happening for me as well. It is really annoying as my digital camera takes photos in a very high definition and I need to scale them down to something more manageable before uploading them to my online gallery2 installation. 
At the moment my only option is to convert them through GIMP which retains the exif information while scaling.
Comment 5 Michael Chudobiak 2008-04-07 18:52:18 UTC
Fixed in svn trunk rev 2314. Should appear in 2.11.0 and later.

- Mike