Docu review done: Mon 03 Jul 2023 16:33:56 CEST

Table of content

General

exiftool allows you to modify the metadata from picutes

Installation

This application can be installed with apt

$ apt install libimage-exiftool-perl

Commands

CommandsDescriptions
--listlists all metadata from file
-o OUTFILE (-out)Set output file or directory name
-overwrite_originalOverwrite original by renaming tmp file
-PPreserve file modification date/time
-rRecursively process subdirectories
-scanForXMPBrute force XMP scan
-all=clears all metadata

Samples

List metadata about files

$ exiftool --list IMG_20200329_002001.jpg
ExifTool Version Number         : 12.00
File Name                       : IMG_20200329_002001.jpg
Directory                       : .
File Size                       : 5.8 MB
File Modification Date/Time     : 2020:03:29 00:30:16+01:00
File Access Date/Time           : 2020:06:30 11:06:24+02:00
File Inode Change Date/Time     : 2020:06:30 11:05:32+02:00
File Permissions                : rw-r--r--
File Type                       : JPEG
File Type Extension             : jpg
MIME Type                       : image/jpeg
Image Width                     : 5472
Image Height                    : 7296
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
Image Size                      : 5472x7296
Megapixels                      : 39.9

Removes all tabgs from all files found by *.jpg including subdirs

$ exiftool -r -overwrite_original -P -all= *.jpg

URL

Examples