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.

  • \$\begingroup\$ In which orientation were they shot? \$\endgroup\$
    – clabacchio
    Commented Nov 13, 2014 at 10:08

1 Answer 1


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 and acknowledge you have read our privacy policy.

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