last update: 2023-09-29 at 05:00:17 CEST

Edit EXIV2 Metadata

To edit IPTC metadata install exiv2

install debian
sudo apt-get install exiv2
install gentoo
emerge -av media-gfx/exiv2

Print the IPTC metadata

exiv2 -pi ./image.jpg

Add iptc metadata for indexing on a stock photo site:

exiv2 -M "add Iptc.Application2.ObjectName title" ./image.jpg
exiv2 -M "add Iptc.Application2.Keywords one, two, three" ./image.jpg
exiv2 -M "add Iptc.Application2.City hannover" ./image.jpg
exiv2 -M "add Iptc.Application2.Copyright we the people" ./image.jpg