Unfortunately, I happen to take a lot of photographs looking down, with the camera’s image sensor in a nearly horizontal plane. Doom appeared on my computer with the correct orientation because my computer looked at the Orientation field of the EXIF data and rotated the image accordingly. Which tells the software on the computer to rotate the image data 270° clockwise before displaying it.įinally, if the camera is rotated so its top is pointed to the photographer’s right, the image will look like this on our computerĪnd exiftool will tell us the orientation as Orientation : 6 If the camera is rotated so the top is pointing to the photographer’s left, the image will look like this on our computerĪnd exiftool will tell us the orientation as Orientation : 8 If we leave out the -n option, exiftool will tell us the orientation in English: exiftool -Orientation We can use exiftool to tell us this by executing exiftool -Orientation -n If the camera is in landscape orientation with the bottom of the camera down, the orientation value is 1: The orientation information is expressed as an integer and written to a specific field in the EXIF metadata for the image. Applications that display images read that information and present the image rotated accordingly. With exiftool, I can remove the spurious rotation that sometimes appears, and I know that it’s a lossless operation because exiftool doesn’t touch the image itself, only the metadata.įor a few years now, digital cameras have included a device that tracks the orientation of the camera and puts that information into the image file’s metadata. Enter exiftool, an extremely full-featured program and Perl library for editing the EXIF metadata in image files. Rotating photos is no big deal-I can’t imagine any image editor that won’t let you do it-but I want the rotation to be done losslessly and I want to know it’s being done losslessly. Next post Previous post Derotating JPEGs with exiftoolĪfter importing photos from my digital camera, I often find that pictures I took in landscape mode are rotated to portrait mode.
0 Comments
Leave a Reply. |