EXIFIRON(1)

NAME
exifiron - Orientation correction and shrinking of Exif JPEG images

SYNOPSIS
exifiron [options] file.jpg ...

DESCRIPTION
This manual page documents briefly the exifiron command.

exifiron optimises digital photographs in JPEG Exif format in many ways. It corrects the orientation of the JPEG image data, so that portrait images can be viewed properly. It can remove the image thumbnail stored in the Exif data, thus shortening the file by a few kilobytes. It recompresses the image data in progressive JPEG format to reduce the file size. Finally, it can restore the file timestamp from the Exif data.

OPTIONS
exifiron follows the usual Unix command line syntax, with options starting with a dash (`-'). Options and file names can be mixed on the command line.

--  Stop processing options. This is useful if a file name begins with a dash.

-h  Display short usage information.

-0  Correct the orientation of the images according to the Exif Orientation tag. This is the default.

-1, -u
    Orientation 1: Do not transform the images.

-2, -f
    Orientation 2: Flip the images horizontally.

-3, -U
    Orientation 3: Rotate the images upside down.

-4, -F
    Orientation 4: Flip the images vertically.

-5, -t
    Orientation 5: Transpose the images across the UL-to-LR axis.

-6, -R
    Orientation 6: Rotate the images clockwise 90 degrees.

-7, -T
    Orientation 7: Transverse the images across the UR-to-LL axis.

-8, -r
    Orientation 8: Rotate the images counterclockwise 90 degrees.

-e  Remove Exif thumbnails. This is the default.

-E  Preserve Exif thumbnails.

-d  Stamp the files with the Exif DateTime, if available. This is the default.

-D  Stamp the files with the Exif DateTimeDigitized, if available.

-O  Stamp the files with the Exif DateTimeOriginal, if available.

-o  Stamp the files with the current timestamp.

-b  Generate baseline JPEG images.

-p  Generate progressive JPEG images (default). The files are typically smaller than baseline JPEG, but some applications do not support the progressive format.

EXAMPLES

exifiron -R -E -b r*.jpg
    Rotate the files r*.jpg clockwise 90 degrees, regardless of the Orientation tag, remove thumbnails and set the timestamp from DateTime.

exifiron *.jpg
    Process all files *.jpg in the current directory.

exifiron - < in.jpg > out.jpg
    Optimise in.jpg to out.jpg via standard input and output.

ENVIRONMENT

TZ  The time zone for interpreting the Exif DateTime tags. If the camera keeps its time in Coordinated Universal Time (UTC), set TZ=UTC0. See mktim(3) and tzset(3).

AUTHOR
Marko Mäkelä <msmakela@nic.funet.fi>. The lossless JPEG image transformations have been adapted from jpegtran(1) of the Independent JPEG Group, written by Thomas G. Lane and Guido Vollbeding, and the JPEG decompression and compression algorithms are in libjpeg from the Independent JPEG Group.

SEE ALSO
exiftags(1), jpegcom(1), jpegtran(1), photomolo(1).