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 333102 - Image rotation action does not update the EXIF tag correctly
Image rotation action does not update the EXIF tag correctly
Status: RESOLVED FIXED
Product: gthumb
Classification: Other
Component: general
2.6.x
Other Linux
: Normal normal
: ---
Assigned To: Paolo Bacchilega
Paolo Bacchilega
Depends on:
Blocks:
 
 
Reported: 2006-03-02 09:12 UTC by Martin Stjernholm
Modified: 2006-03-05 11:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Martin Stjernholm 2006-03-02 09:12:08 UTC
When I rotate an image, the resulting EXIF tag is not completely updated with the new orientation. EXIF dump before rotation:

> exiftran -d foo.jpg
foo.jpg
   ifd 0
      0x010f  Manufacturer                   FUJIFILM
      0x0110  Model                          FinePix F11    
      0x0112  Orientation                    left - bottom
      0x011a  x-Resolution                   72.00
      0x011b  y-Resolution                   72.00
      0x0128  Resolution Unit                Inch
      0x0131  Software                       Digital Camera FinePix F11     Ver1.01
      0x0132  Date and Time                  2006:03:02 18:52:31
      0x0213  YCbCr Positioning              co-sited
      0x8298  Copyright                      [None] (Photographer) - [None] (Editor)
   ifd 1
      0x0103  Compression                    JPEG compression
      0x0112  Orientation                    left - bottom
      0x011a  x-Resolution                   72.00
      0x011b  y-Resolution                   72.00
      0x0128  Resolution Unit                Inch
      0x0213  YCbCr Positioning              co-sited
/.../

Notice the two places where the orientation is stored. gthumb only updates the first, so this is what I get after rotation:

> exiftran -d foo.jpg
foo.jpg
   ifd 0
      0x010f  Manufacturer                   FUJIFILM
      0x0110  Model                          FinePix F11    
      0x0112  Orientation                    top - left
      0x011a  x-Resolution                   72.00
      0x011b  y-Resolution                   72.00
      0x0128  Resolution Unit                Inch
      0x0131  Software                       Digital Camera FinePix F11     Ver1.01
      0x0132  Date and Time                  2006:03:02 18:52:31
      0x0213  YCbCr Positioning              co-sited
      0x8298  Copyright                      [None] (Photographer) - [None] (Editor)
   ifd 1
      0x0103  Compression                    JPEG compression
      0x0112  Orientation                    left - bottom
      0x011a  x-Resolution                   72.00
      0x011b  y-Resolution                   72.00
      0x0128  Resolution Unit                Inch
      0x0213  YCbCr Positioning              co-sited
/.../

This bug causes problems with e.g. gimp that apparently favors the orientation setting in ifd 1, whereas most other programs I've tried uses the one in ifd 0.
Comment 1 Paolo Bacchilega 2006-03-05 11:53:15 UTC
fixed in current CVS, thanks.