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
 
tips/imagemanipulation.txt · Dernière modification: 2010/06/18 06:04 par oliviermehani
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki