JPEG orientation

cédric (dev) said on 09/19/2018

a (very) late mention — since 0.92g (10/08/2017), pingo is able to do automatic JPG rotation according to the orientation tag in the JPG. consider those following files. according to your browser (or viewer), they can be rendered differently — if you click on those files, your browser could try to do the rotation

orientation tag

orientation 1 orientation 2 orientation 3
orientation 4 orientation 5 orientation 6
orientation 7 orientation 8

lossless rotation

pingo could do lossless rotation according to the orientation tag in the JPG. if the tag is correctly formed, that should turn the image like expected. this is done automatically in pingo, except if you use -lossless or if you forbid the removal of the segment with -strip=N/-nostrip

:: strong profile, with auto-rotation
pingo -s9 <targets>
orientation 3 no orientation tag
4,35 KB 4,26 KB

lossy rotation

pingo could do this with additional lossy as well. it does the same job as lossless: it transforms the image and then, it drops the segment. note that can be combined with all transformations in pingo, including JPG conversion to sRGB, JPG scaling, grayscale, the experimental filter, etc.

:: auto profile, with auto-rotation
pingo <targets>
orientation 3 no orientation tag
4,35 KB 3,06 KB

no rotation?

to disable this auto-rotation, use -norotation

comment this