Prendre une photo verticale de mon appareil photo (orientation dans les données Exif):
IM identify
dit:
Test.jpg JPEG 5472x3648 5472x3648+0+0 8-bit sRGB 6.907MB 0.000u 0:00.000
La commande Linux file
dit (extraits):
Test.jpg: JPEG image data, Exif standard: [... orientation=lower-left, ... ], ... , 5472x3648, ...
Après la conversion,
IM identify
dit:
Test-out.jpg JPEG 3648x5472 3648x5472+0+0 8-bit sRGB 7.082MB 0.000u 0:00.010
Et file
:
Test-out.jpg: JPEG image data, Exif Standard: [... orientation=upper-left, ...], ... , 3648x5472, ...
Alors, évidemment, le JPEG est réécrite pour avoir l'orientation habituelle et être compatible avec les lecteurs JPEG qui ne pivotent pas l'orientation EXIF.