How to turn off auto rotation of photo image in GIMP 2.8?

When you take photos in vertical angle, the camera flips images to store.

Original photo image

GIMP checks EXIF data when it opens JPEG image file to determine it’s rotated or not. You will see or see the dialog window.

According to the EXIF data, this image is roated.
Would you like GIMP to rotate it into the standard orientation?
[] Don’t ask me again
[ Keep Orientation ] [ Rotate ]

Checking the “Don’t ask me again” turns on auto rotation. It works fine until you don’t manually rotate the image file. Other graphic programs such as feh who skips EXIF data check shows the image flipped though.

Orientation : rotate 90 means the image is flipped. Below is EXIF data of above image.
File name : IMG_2357.JPG
File size : 1529069 bytes
Camera model : Canon EOS DIGITAL REBEL XS
Date/Time : 2012:10:16 14:00:19
Resolution : 1936 x 1288
Orientation : rotate 90
Focal length : 35.0mm (35mm equivalent: 57mm)
Exposure time: 0.0050 s (1/200)
Aperture : f/5.6
ISO equiv. : 100
Whitebalance : Manual
Light Source : Daylight
Metering Mode: pattern
Exposure : Manual
Exposure Mode: Manual

After correction of the image orientation, it looks like. (I used convert to correct the orientation and cropped it.)

Standard orientation

Opening it in GIMP with auto rotation is on flips back the image.

GIMP flips back the image

How to turn off auto rotation of photo image again?

There is no menu for it unfortunately. You need to manually edit the ~/.gimp-2.8/parasiterc file right after closing GIMP. Make sure you remove (parasite “exif-orientation-rotate” 1 3 “yes”) in the file.

parasiterc file with auto rotation is on
# GIMP parasiterc
#
# This file will be entirely rewritten each time you exit.

(parasite “exif-orientation-rotate” 1 3 “yes”)

(parasite “jpeg-save-defaults” 1 38
“\70\65\56\60\60\60\60\60\60\40\60\56\60\60\60\60\60\60\40\61\40\61\40\61\40\61\40\60\40\60\40\60\40\61\40\61\40\61”)

# end of parasiterc

parasiterc file with auto orientation is off.
# GIMP parasiterc
#
# This file will be entirely rewritten each time you exit.

(parasite “jpeg-save-defaults” 1 38 “\70\65\56\60\60\60\60\60\60\40\60\56\60\60\
60\60\60\60\40\61\40\61\40\61\40\61\40\60\40\60\40\60\40\61\40\61\40\61”)

# end of parasiterc

About janpenguin

Email: janpenguin [at] riseup [dot] net Every content on the blog is made by Free and Open Source Software in GNU/Linux.
This entry was posted in GNU/Linux, Photography and tagged , , , , . Bookmark the permalink.

One Response to How to turn off auto rotation of photo image in GIMP 2.8?

  1. mmarch says:

    When rotating a photo with GIMP, it does not clear the rotate exif tag (at least until 2.6, haven’t checked 2.8 yet).

    The solution I found is this:
    # sudo apt-get install jhead
    jhead -norot

    My 2 cents 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s