Opened 8 years ago

Last modified 8 weeks ago

#8189 reopened enhancement

Support for rotation of images by EXIF tags.

Reported by: harald@… Owned by: harald@…
Priority: normal Milestone:
Component: Core imagery Version: latest
Keywords: Image rotation EXIF tag Cc:


My camera doesn't rotate all images correctly, and I believe this to be fairly common.
Result is I end up rotating some images after import to my computer. My preferred way of doing that is by only changing the rotation settings in the images EXIF data. (I use Shotwell for this, but it's a very common way to do it.)
It's very quick, avoids rewriting (and degradation of) the jpeg file, and most importantly it keeps the GPS EXIF tags (no problem).

Downside is, Josm doesn't read or use the EXIF tag for image rotation, making my images look like they weren't rotated at all. I need to use an extra image viewer to see those properly.

The update should be fairly easy. It needs to do something like this:

  1. Read image data such as size, rotation and GPS position. (The library for reading gps position can be extended to read rotation from EXIF data.)
  2. Calculate size of image to read into memory buffer.
  3. Read image into memory.
  4. Rotate the image in memory according to EXIF data.

Attachments (0)

Change History (4)

comment:1 Changed 8 years ago by bastiK

Image rotation by EXIF tag is supported. Please update to the most recent tested version and append the image here if it still doesn't work.

comment:2 Changed 8 years ago by Don-vip

Owner: changed from team to harald@…
Status: newneedinfo

comment:3 Changed 8 years ago by Don-vip

Resolution: needinfo
Status: needinfoclosed

comment:4 Changed 8 weeks ago by skyper

Resolution: needinfo
Status: closedreopened

I sometime have no or wrong information if my GPS is not fixed right after booting or taking pictures in a tunnel. Lying on the ground and taking pictures to the sky like a vertical wall/cliff can produce wrong information.

Have to take a look if I find one where I have not yet set the proper orientation.

Modify Ticket

Change Properties
Set your email in Preferences
as reopened The owner will remain harald@….
as The resolution will be set.
to The owner will be changed from harald@… to the specified user.
The owner will change to
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.