How to retrieve EXIF data from the command line in Ubuntu Li
發表於 : 2017-01-16 08:38:36
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
Next, you can retrieve the data on an image with the following example:
1
If you want just the EXIF data, you can use something like the following:
1
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
1
代碼: 選擇全部
identify -verbose /usr/share/backgrounds/WildWheat_by_Brian_Burt.jpg
1
代碼: 選擇全部
identify -verbose /usr/share/backgrounds/WildWheat_by_Brian_Burt.jpg | grep "exif:"