exiftran(1) - Linux man page
Name
exiftran - transform digital camera jpeg imagesSynopsis
exiftran [ options ] file(s)Description
Transform Options
- -a
- automatic (using exif orientation tag)
- -9
- rotate by 90 degrees
- -1
- rotate by 180 degrees
- -2
- rotate by 270 degrees
- -f
- flip vertical
- -F
- flip horizontal
- -t
- transpose
- -T
- transverse
- -nt
- Don't rotate exif thumbnail.
- -ni
- Don't rotate jpeg image. You might need this or or the -nt option to fixup things in case you rotated the image with some utility which 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) to avoid other exif-aware applications try to rotate the already-rotated image again.
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.
- -i
- Enable inplace 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 inplace editing.
- -p
- Preserve timestamps (atime + mtime) when doing inplace editing.
Examples
Autorotate all jpeg files in the current directory:exiftran -ai *.jpeg
See Also
jpegtran(1), exif(1)Author
Gerd Knorr <kraxel@bytesex.org>Copyright
Copyright © 2002 Gerd Knorr <kraxel@bytesex.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.