ExifTool FAQ

Index

  1. Discussing ExifTool issues
  2. Determining tag names
  3. Problems with duplicate tags
  4. Aperture and shutter speed
  1. Date and time formats
  2. "Can't convert TAG" errors
  3. Deleting all EXIF from a TIFF
  4. Changing Make or Model tag

1. "Is there a forum for discussing ExifTool issues?"

ExifTool issues can be discussed on the CPAN forum at http://www.cpanforum.com/dist/Image-ExifTool

2. "How do I determine the tag name for some information?"

When you run exiftool, by default it prints descriptions, not tag names, for the information it extracts. To print the tag names instead, use the '-s' option. Also, see the tag names documentation for a complete list of available tag names.

3a. "ExifTool reports the wrong value for a tag",
3b. "ExifTool doesn't write a tag properly", or
3c. "Other software can't read information written by ExifTool"

Make sure you are looking at the right information. Information may be duplicated in different locations within an image. When in doubt, use 'exiftool -a -G1 FILENAME' to show all information and the locations in the file. In this command, '-a' allows duplicate tags to be displayed, '-G1' shows the family 1 group name (ie. the location) of each tag, and 'FILENAME' is the name of your image file. Also, you may want to add '-s' to show the actual tag names instead of the descriptions.

You can read or write information in a specific location if necessary by prefixing the tag name on the command line with the desired group name. ie) '-ExifIFD:DateTimeOriginal'

4. "ExifTool reports more than one shutter speed or aperture value, and they are slightly different"

There are a number of different ways that aperture and shutter speed information get saved in an image. The standard EXIF values (EXIF:FNumber and EXIF:ExposureTime) should correspond to the values displayed by your camera, but these values may have been rounded off. The APEX values (EXIF:ApertureValue and EXIF:ShutterSpeedValue) may be different due to their own round-off errors. If available, the MakerNotes values are the typically the most accurate because they haven't been rounded off at all, but you may see odd values like 1/102 instead of 1/100, etc.

5. "How do I format date and time information for writing?"

All information (including date/time information) is written in the same format as it is read out. ExifTool converts all date and time information to standard EXIF format, so this is also the way it is specified when writing. The standard EXIF date/time format is 'YYYY:MM:DD hh:mm:ss', and a timezone may be specified by adding '+hh:mm', '-hh:mm' or 'Z'. If the meta information format requires a timezone and one is not specified, '+00:00' (or 'Z') is assumed. For example:
    exiftool -dateTimeOriginal='2005:10:23 20:06:34-05:00' a.jpg

6. "I get the following error when writing a tag: 'Can't convert TAG (not in PrintConv)'"

ExifTool applies a print conversion (PrintConv) to the printed values of all tags. These print conversions are documented for all tags in the Values column of the Tag Name documentation. For example, the GPSAltitudeRef tag defines the following conversions:
    0 = Above Sea Level
    1 = Below Sea Level
For this tag, a value of '0' is printed as 'Above Sea Level', and '1' is printed as 'Below Sea Level'. Reading and writing with ExifTool is symmetrical, so a value that is printed as 'Above Sea Level' must also be written in that form. (ie. The inverse print conversion is applied when writing values.) For example, to write GPSAltitudeRef you can type:
    exiftool -gpsaltituderef='Above Sea Level' image.jpg
or any unambiguous short form may be used and ExifTool will know what you mean, ie)
    exiftool -gpsaltituderef=above image.jpg
Alternatively, the print conversion can be disabled with the '-n' option. In this case the printed value of GPSAltitudeRef will be '0' or '1', and the value is written in the same way. So the following command has exactly the same effect as the commands above:
    exiftool -gpsaltituderef=0 -n image.jpg
Integer values may also be specified in hexadecimal (with a leading '0x'). For example, the following commands are all valid and accomplish the same thing:
    exiftool -flash=1 -n image.jpg
    exiftool -flash=0x1 -n image.jpg
    exiftool -flash=fired image.jpg

7. "I can't delete all EXIF information from a TIFF file using 'exiftool -exif:all= img.tif'"

This is because of the way a TIFF file is structured. With a JPEG image, this command will remove IFD0 (the main Image File Directory) as well as any subdirectories, thus removing all EXIF information. But with the TIFF format, the main image itself is stored in IFD0, so deleting this directory would destroy the image. Instead, ExifTool just deletes the ExifIFD subdirectory, so any information stored in other directories is preserved.

Use 'exiftool -a -G1 -s img.tif' to see where the information is stored. Any information remaining in other IFD's must be deleted separately from a TIFF file if desired.

8. "All maker note information is lost if I change the Make or Model tag"

The Make and Model tags are used by some image utilties (including ExifTool) to determine the format of the maker note information. Deleting or changing either of these tags may prevent these utilities from recognizing or properly interpreting the maker notes. Also beware that the maker notes information may be damaged if an image is edited when the maker notes are not properly recognized. So it is a good idea not to edit the Make and Model tags in the first place.

If you really want to delete the Make and Model information, you might as well delete the maker notes too. You can do this with the following command:

    exiftool -make= -model= -makernotes:all= image.jpg

Last revised Nov. 16, 2005

<-- Back to ExifTool home page