Page 1 of 1

Detect correct orientation?

Posted: 2011-10-19T20:27:35-07:00
by stuporglue
Hello,

Long time IM user, first time on the forums.

I am scanning several thousand (5-7,000) family photos, and I'm wishing there were a way to detect the correct orientation of the scanned image.

Does IM have any features which would be help me automatically rotate these photos?

Thanks

Re: Detect correct orientation?

Posted: 2011-10-19T21:09:11-07:00
by fmw42
Are you talking about just landscape vs portrait or arbitrary rotation? Please clarify or provide a link to an example image.

For the first case, though I have never used this and don't know exactly what it does, which may depend upon some information in the meta data, but check out -orient.

http://www.imagemagick.org/script/comma ... php#orient

For the latter, see -deskew at http://www.imagemagick.org/script/comma ... php#deskew

or if on Linux or Mac or Windows w/cygwin, see my script, unrotate, at the link below.

Re: Detect correct orientation?

Posted: 2011-10-20T00:56:58-07:00
by anthony
See Photo Handling, Orientation
http://www.imagemagick.org/Usage/photos/#orient

Especially note that if you are not modifying JPEG photos (only fixing orientation) then jhead may be better!

WARNING: Backup all your original photos FIRST!