EXIFTRAN(1)

πŸ“¦
version 2.15 Β· 2 versions
, in alpine 3.24, arch rolling, debian bookworm, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble

✨ EXIFTRAN(1) ✨

okay bestie, gather round, because this is the manual page for exiftran, section 1 of the manuals, and it is lowkey the most useful little utility for your digital camera pics. version 2.09, babes. let's get into it πŸ’–


πŸ¦‹ NAME πŸ¦‹

exiftran β€” transform digital camera jpeg images

🌸 SYNOPSIS 🌸

exiftran [options] file1 file2 ... fileN

exiftran -i [transform options] [others options] file1 file2 ... fileN

exiftran -o outputfile [transform options] [other options] inputfile

exiftran -d file1 file2 ... fileN > exifinfo

πŸ’… DESCRIPTION πŸ’…

so. exiftran is a command line utility that transforms digital camera jpeg images. it does lossless rotations just like jpegtran(1), no cap, no quality lost β€” but unlike jpegtran(1) it actually cares about the EXIF data. the way that it:

  • can rotate images automatically by checking the exif orientation tag
  • updates the exif informations when needed (image dimension, orientation)
  • also rotates the exif thumbnail

and yeah, it can process multiple images at once. main character energy fr fr. ✨


πŸŽ€ TRANSFORM OPTIONS πŸŽ€

these are the ones that actually spin your pics around, bestie:

  • -a β€” automatic mode, using the exif orientation tag. it just knows.
  • -9 β€” rotate by 90 degrees clockwise.
  • -1 β€” rotate by 180 degrees clockwise.
  • -2 β€” rotate by 270 degrees clockwise.
  • -f β€” mirror image vertically (top / bottom).
  • -F β€” mirror image horizontally (left to right).
  • -t β€” transpose (across UL-to-LR corner).
  • -T β€” transverse (across UR-to-LL corner).
  • -nt β€” don't transform exif thumbnail.
  • -ni β€” don't transform jpeg image. you might need this one, or the -nt option, to fixup things in case you transformed the image with some utility that ignores the exif thumbnail. just generating a new thumbnail with -g is another way to fix it 🫢
  • -no β€” don't update the orientation tag. by default exiftran sets the orientation to "1" (no transformation needed) so other exif-aware applications don't try to rotate the already-rotated image again. imagine the chaos 😭
  • -np β€” don't pare lost edges. by default exiftran don't preserve image size of the images that do not meet a multiple of 8 pixels. he prefers to cut a strip of a few pixels rather than offering a damaged image. use this option if you want them all the same.

🌈 OTHER OPTIONS 🌈

  • -h β€” print a short help text.
  • -d β€” dump exif data for the file(s).
  • -c text β€” set jpeg comment tag to text.
  • -g β€” (re)generate exif thumbnail.
  • -o file β€” specify output file. only one input file is allowed in this mode, bestie, don't push it.
  • -i β€” enable in-place editing of the images. exiftran allows multiple input files then. you must specify either this option or a output file with -o for all operations which modify the image (i.e. everything but -d right now).
  • -b β€” create a backup file when doing in-place editing (imply -i).
  • -p β€” preserve timestamps (atime + mtime) when doing in-place editing (imply -i).

πŸ“ EXAMPLES πŸ“

autorotate all jpeg files in the current directory:

exiftran -ai *.jpeg

slay. that's it. that's the whole vibe check. ✨


🧚 SEE ALSO 🧚

exif(1), exiftags(1), jpegtran(1)


πŸ‘‘ AUTHOR πŸ‘‘

Gerd Hoffmann <gerd@kraxel.org>


Copyright (c) 2002-2012 Gerd Hoffmann <gerd@kraxel.org>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.


no cap, that warranty disclaimer is not a joke β€” it's giving very serious legal energy, so read it twice bestie πŸ™ˆ

okay and that's the whole page!! this was EXIFTRAN 2.09, copyright (c) 2002-2012 Gerd Hoffmann, section 1 of the manual. tysm for reading, go rotate something πŸ’…πŸ’–βœ¨