Exiv2 is a C++ library and a command line utility to read and write Exif and IPTC image metadata.