Before the rush

Before the rush
by evan-pak

Submit your Photo
Hall of Fame

Please participate in Meta
and help us grow.

Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using a Canon PowerShot G12 camera to take photos for vegetation analysis. The camera is looking straight down at the vegetation - or at least CLOSE to straight down. The autorotation function on this model of PowerShot cannot be turned off. Because the camera on the pole we carry through the field may be slightly tipped in any direction, the images are autorotated in all directions. We're saving RAW images.

Is there a program that can read the EXIF and orient all the images so bottom of the camera is the bottom of the image?

I can take up to hundreds of photos on a day, so I don't want to rotate image by image in Digital Photo Professional. And the powers-that-be are hesitant to use a CHDK.

share|improve this question

Any metadata editing tool can do this. For simple cases with JPEG files, I recommend jhead, a free and open source program available for Linux, Mac OS, and Windows.

jhead --norot *.jpg will clear the rotation flag from all *.jpg images in the current directory.

Since you're using RAW, I recommend eitherExifTool or exiv2 (also free, cross-platform, and open source).

So, for all the cr2 files in a directory, either:

exiftool -Orientation=1 -n *.cr2


exiv -M'del Exif.Image.Orientation' *.cr2

(Setting Orientation to 1 means "no rotation"; deleting the tag as in the second example should have the same effect.)

It's also possible that the camera writes this flag to more than one metadata group in the file. If this doesn't work, there's some flags which can be added to get the others (but I think that probably won't be needed).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.