exif

Langue: en

Version: 2008-11-04 (debian - 07/07/09)

Section: 1 (Commandes utilisateur)

NAME

exif - shows EXIF information in JPEG files

SYNOPSIS

exif [ OPTION ] [ file... ]

DESCRIPTION

exif is a small command-line utility to show and change EXIF information in JPEG files.

Most digital cameras produce EXIF files, which are JPEG files with extra tags that contain information about the image. The exif command-line utility allows you to read EXIF information from and write EXIF information to those files. exif internally uses the libexif library.

Each input file given on the command line is acted upon in turn, using all the options given. Execution will be aborted immediately if one file is not readable or does not contain EXIF tags.

OPTIONS

-v, --version
Display the exif version number.
-i, --ids
Show ID numbers instead of tag names.
-t, --tag=TAG
Select only this TAG. TAG is the tag title, the short tag name, or the tag number (hexadecimal numbers are prefixed with 0x), from the IFD specified with --ifd. The tag title is dependent on the current locale, whereas name and number are locale-independent.
--ifd=IFD
Select a tag from this IFD. Valid IFDs are "0", "1", "EXIF", "GPS", and "Interoperability". Defaults to "0".
-l, --list-tags
List all known EXIF tags and IFDs. A JPEG image must be provided, and those tags which appear in the file are shown with an asterisk in the corresponding position in the list.
-|, --show-mnote
Show the contents of the MakerNote tag. The contents of this tag are nonstandard (and often undocumented) and may therefore not be recognized, or if they are recognized they may not necessarily be interpreted correctly.
--remove
Remove the tag or (if no tag is specified) the entire IFD.
-s, --show-description
Show description of tag. The --tag option must also be given.
-e, --extract-thumbnail
Extract the thumbnail, writing the thumbnail image to the file specified with --output.
-r, --remove-thumbnail
Remove the thumbnail from the image, writing the new image to the file specified with --output.
-n, --insert-thumbnail=FILE
Insert FILE as thumbnail. No attempt is made to ensure that the contents of FILE are in a valid thumbnail format.
-o, --output=FILE
Write output image to FILE. If this option is not given and an image file must be written, the name used is the same as the input file with the suffix ".modified.jpeg".
--set-value=VALUE
Set the data for the tag specified with --tag and --ifd to VALUE. Compound values consisting of multiple components are separated with spaces.
-c, --create-exif
Create EXIF data if it does not exist
-m, --machine-readable
Produce output in a machine-readable (tab-delimited) format. The --xml-output and --machine-readable options are mutually exclusive.
-x, --xml-output
Produce output in an XML format (when possible). The --xml-output and --machine-readable options are mutually exclusive.
-d, --debug
Show debugging messages.

Help options

-?, --help
Show help message.
--usage
Display brief usage message.

EXAMPLES

Here are some examples of the use of exif:
exif -e picture.jpg
Extract thumbnail from picture.jpg to picture.jpg.modified.jpg
exif -t 0x9003 picture.jpg
Display EXIF tag 0x9003 (DateTimeOriginal)
exif --ifd=EXIF --tag 0x9003 --set-value='2007:09:17 09:30:55' picture.jpg
Set EXIF tag 0x9003 (DateTimeOriginal) to the given value, writing the new file to picture.jpg.modified.jpg

AUTHOR

Written by Lutz Mueller <lutz@users.sourceforge.net>.

SEE ALSO

http://www.sourceforge.net/projects/libexif