Outils d'utilisateurs

Outils du Site


tips:imagemanipulation

Image Manipulation

Tips about image manipulation with Unix command-line tools.

EXIF and IPTC tags

In short, ImageMagick can read EXIF and IPTC tags, but only write the latter. EXIF tags can be added using ExifTool.

Examples

Setting Tags

iptc.txt

2#05#Object Name="Foo"
2#55#Date Created="Bar"
2#80#By-line="Baz"
2#110#Credit="Quux"
2#115#Source="Foo"
2#116#Copyright Notice="FooBar"
2#118#Contact="FooBaz"
2#120#Caption="FooQuux"
$ mogrify -comment "JFIFComment" -profile 8BIMTEXT:iptc.txt IMAGE.JPG
$ exiftool -comment="JFIFComment" -usercomment="EXIF user comment" -artist="artist" -imagedescription="description" -documentname="name" IMAGE.JPG

Reading Tags

$ identify -format "%c %[IPTC:2:110] %[EXIF:artist]" IMAGE.JPG

Renaming File According to the EXIF Date

It is easily done with Exiv2:

$ for FILE in *.JPG; exiv 2 mv ${FILE}; done
tips/imagemanipulation.txt · Dernière modification: 2013/11/15 06:06 (modification externe)