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:"