EXIFIRON(1)                                                        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 por-
       trait 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  order  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 Ori-
              entation 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 typi-
              cally smaller than baseline JPEG, but some applications  do  not
              support the progressive format.

       -n     Do  not  compute  optimal  Huffman coding tables for the images.
              This will save some execution time and may produce larger files.
              For  thumbnail images, optimal coding tables will always be com-
              puted.

       -s directory
              Save the modified files in directory instead  of  replacing  the
              original files.

       -S directory
              Save the Exif thumbnails in directory.

       -P command
              Output  progress indication to the standard input of an external
              command that is invoked by popen(3) as  a  child  process.   The
              progress  is  indicated  by a monotonically increasing stream of
              integer decimal numbers between 0 and 100.  A  possible  command
              could  be  "dialog --progress".  See also dialog(1), gdialog(1),
              and zenity(1).Thisoptionis not available on Windows.

EXAMPLES
       exifiron -R -E -b r*.jpg
              Rotate the files r*.jpg clockwise 90 degrees, regardless of  the
              Orientation tag, preserve thumbnails (rotating them as well) and
              set the timestamp from DateTime.

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

       exifiron -S thumbs -s images a.jpg
              Process the file a.jpg, write its Exif thumbnail to thumbs/a.jpg
              and the optimised image to images/a.jpg.

       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).

BUGS
       Previous  versions of exifiron (before 1.2) do not transform the embed-
       ded thumbnail image.  They also do not adjust other  image  resolutions
       and  dimensions  in  the Exif data except ExifImageWidth and ExifImage-
       Height.

AUTHOR
       Marko Mkel <marko.makela@iki.fi>.  The lossless JPEG image  transfor-
       mations  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 Inde-
       pendent JPEG Group.

SEE ALSO
       exiftags(1), jhead(1),  jpegcom(1),  jpegnail(1),  jpegtran(1),  photo-
       molo(1).



                                 July 31, 2005                     EXIFIRON(1)
