Outils pour utilisateurs

Outils du site


Panneau latéral

Tips

Divers

Projets

Ham Radio

Machines

Research

Privé

Études

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"
$ <in>mogrify -comment "JFIFComment" -profile 8BIMTEXT:iptc.txt IMAGE.JPG</in>
$ <in>exiftool -comment="JFIFComment" -usercomment="EXIF user comment" -artist="artist" -imagedescription="description" -documentname="name" IMAGE.JPG</in>

Reading Tags

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

Renaming File According to the EXIF Date

It is easily done with Exiv2:

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