The jpeg-xmp package contains the C source of four programs:
The xmptool package contains one program:
jpegxmp is a Bash shell script:
addxmp is also a Bash shell script:
Use rdjpgxmp to extract the XMP data from a JPEG/JFIF file, use xmptool
to query or update that XMP data, then use wrjpgxmp to put the XMP
data back, e.g.:
rdjpgxmp file.jpg | xmptool -w 'http...property'
'value' | wrjpgxmp file.jpg >newfile.jpg. The jpegxmp script is
a wrapper around these to make the most common operations easier.
The addxmp script makes it easy to describe a series of JPEG images that share metadata in a simple text file. Metadata that is the same for several images only needs to be entered in the text file once. Addxmp uses the other tools to convert the text to XMP and insert it into the JPEG images. It can also extract existing metadata from images into such a text file for easy editing.
For more info on XMP/RDF, see: