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

回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

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

文章 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:"
回覆文章

回到「Linux」