man > jpegexiforient(1)

πŸ“› NAME

jpegexiforient - reads or writes the Exif Orientation Tag

πŸš€ Quick Reference

🎯 Use CaseπŸ“Ÿ CommandπŸ“ Description
πŸ“– Get current orientationjpegexiforient image.jpgPrint the numeric Exif orientation value (1–8)
πŸ”„ Set to normal (1)jpegexiforient -1 image.jpgTag as top‑left (no rotation needed)
β†ͺ️ Set to right‑top (6)jpegexiforient -6 image.jpgTag for clockwise 90Β° rotation
🀫 Output only the valuejpegexiforient -n image.jpgSuppress trailing newline for scripting

πŸ“œ SYNOPSIS

jpegexiforient [switches] jpegfile

πŸ“– DESCRIPTION

This utility program reads and writes the Exif Orientation Tag. It can be used together with jpegtran in scripts for automatic orientation correction of digital camera pictures.

The Exif orientation value gives the orientation of the camera relative to the scene when the image was captured. The relation of the β€˜0th row’ and β€˜0th column’ to visual position is shown below.

 Value | 0th Row     | 0th Column
 ------+-------------+-----------
   1   | top         | left side
   2   | top         | right side
   3   | bottom      | right side
   4   | bottom      | left side
   5   | left side   | top
   6   | right side  | top
   7   | right side  | bottom
   8   | left side   | bottom

For convenience, here is what the letter F would look like if it were tagged correctly and displayed by a program that ignores the orientation tag:

    1        2       3      4

  888888  888888      88  88
  88          88      88  88
  8888      8888    8888  8888
  88          88      88  88
  88          88  888888  888888

      5            6           7          8

  8888888888  88                  88  8888888888
  88  88      88  88          88  88      88  88
  88          8888888888  8888888888          88

jpegexiforient outputs the Exif Orientation Tag in a JPEG Exif file. With the options -1 … -8, it can also be used to set the tag.

🧰 OPTIONS

🏷️ --version

output version information and exit

πŸ”‡ -n

Do not output the trailing newline

πŸ”’ -1 .. -8

Set orientation value 1 .. 8

πŸ‘€ AUTHOR

Guido Vollbeding <guido AT jpegclub.org>

πŸ“š SEE ALSO

jpegtran(1), exifautotran(1)

jpegexiforient(1)
πŸ“› NAME πŸš€ Quick Reference πŸ“œ SYNOPSIS πŸ“– DESCRIPTION 🧰 OPTIONS
🏷️ --version πŸ”‡ -n πŸ”’ -1 .. -8
πŸ‘€ AUTHOR πŸ“š SEE ALSO

Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-18 16:36 @2600:1f28:365:80b0:f8a4:e764:d6bb:8e66
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format