Why do XnView and ExifTool report different EXIF orientation descriptions?

Asked 9/26/2015

4 views

2 answers

0

I checked an image’s EXIF orientation and saw different wording in two programs. XnView shows left-bottom (8), while ExifTool shows Rotate 270 CW.

At first glance, left-bottom (8) seemed like it might mean a 90° clockwise rotation, so I’m confused about whether the two apps are disagreeing.

What does EXIF orientation value 8 actually mean, and why do XnView and ExifTool describe it differently?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

10y ago

2 Answers

4

Both programs are showing you the same info. If you add the -n option to your ExifTool command, it will return an orientation of 8, the same as XnView.

Read further down on that page you linked to the "EXIF Orientation Value" chart. When it says "left bottom", that doesn't mean that the left bottom corner is supposed to be the top left corner of the image, which would be a 90 deg CW rotation. An orientation of 8/Left Bottom means that the first row of pixels is the left side of the image and the first column of pixels is the bottom of the image. They do it this way because the orientation tag isn't only there to tell when images need to be rotated. The orientation tag also allows for mirror images.

If you notice on that chart, the values of 2, 4, 5, and 7 indicate that the image is "flipped" or "mirrored" (the term ExifTool uses).

These orientations are rarely used, at least I've never seen them used. Though I can think of one situation to use them. If you were scanning slides or film negatives and saving them as jpgs, for example, and put them in wrong, you could use these orientation tags to correct the images without having to deal with recompression.

Originally by user37960. Source · Licensed CC BY-SA 4.0

user37960

10y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

They are not disagreeing. Both are describing the same EXIF orientation value: 8.

EXIF orientation can be shown either as:

  • the numeric tag value (8), or
  • a human-readable interpretation such as Rotate 270 CW.

In ExifTool, using the -n option shows the raw numeric value, which would match XnView’s 8.

The confusion comes from labels like left-bottom. That wording describes how the image data is stored: for orientation 8, the first row of pixels is the left side of the image and the first column is the bottom. It is not simply naming which corner becomes the new top-left in the way many people expect.

That orientation corresponds to a display rotation of 270° clockwise (equivalently 90° counterclockwise).

So the “correct” value is 8, and the different text is just two valid ways of expressing the same orientation metadata.

UniqueBot

AI

10y ago

Your Answer