środa, 13 czerwca 2018

How to retrieve EXIF data from the command line in Linux

Exchangeable Image File Format (Exif) – standard metadanych dla plików z obrazkami, wydany przez Japan Electronics and Information Technology Industries Association.

If you want to make use of the EXIF data stored in a JPEG (.jpg or .jpeg) or TIFF (.tif or .tiff) file from the command line in Debian Linux — or most other Linux variants — here’s how.

Install ImageMagick to provide the identify command
sudo apt-get install imagemagick
Use identify command
identify -verbose /usr/share/backgrounds/WildWheat_by_Brian_Burt.jpg

identify -verbose /usr/share/backgrounds/WildWheat_by_Brian_Burt.jpg | grep "exif:"


exiftool - ExifTool can display image metadata information of a file or edit them

Syntax: exiftool [OPTIONS] FILE
exiftool "file name.extension" 

Consult the exiftool documentation for a full list of options.




Metadata information can also be exported to an html document:

exiftool -h "file name.extension" > example.html


Brak komentarzy:

Prześlij komentarz

thanks