2

Why do my jpg phone photos show as portrait in Windows (1536x2048), but in Mediainfo and Paint Shop they show as landscape and rotated ccw (2048x1536)? It's as though they have two sets of meta data or something.

  • In which orientation were they shot? – clabacchio Nov 13 '14 at 10:08
3

Simple: rotation is a JPEG property, and some image editors and viewers understand it, while others are dumb and just display all images starting from the top left.

Your camera is setting this based on the camera's detected orientation, but not all of the programs you are using care.

You can use a utility like jhead or jpegtran to apply the rotation losslessly (and clear the metadata) .

With jhead, it's a simple matter of running:

jhead -autrot *.jpg

in the directory in which your files reside. Other tools (including some GUI ones) can do the same, but this is pretty simple and illustrates the concept.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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