1 頁 (共 1 頁)

How to retrieve EXIF data from the command line in Ubuntu Li

發表於 : 2017-01-16 08:38:36
yehlu
https://mikebeach.org/2011/12/17/how-to ... ntu-linux/

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 Ubuntu Linux — or most other Linux variants — here’s how.

This was tested on Ubuntu 11.10 (Oneiric Ocelot).

First, you will need to have imagemagick installed to provide the identify command.

1

代碼: 選擇全部

sudo apt-get install imagemagick
Next, you can retrieve the data on an image with the following example:

1

代碼: 選擇全部

identify -verbose /usr/share/backgrounds/WildWheat_by_Brian_Burt.jpg
If you want just the EXIF data, you can use something like the following:

1

代碼: 選擇全部

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