Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to read/write XMP metadata using imagemagick?

I would like to read/write XMP metadata in JPEG and PNG files.

I'm able to do this using the exiftool

~ $ exiftool -xmp-dc:description="FooBar" sample.png
    1 image files updated
~ $ exiftool sample.png | grep "Description"
Description                     : FooBar

However, I'm not able to read the XMP Metadata using imagemagick

~ $ identify -verbose sample.png | grep "Description"

My reason to write XMP metadata is that so it can be read by Adobe Products.

Question

  • Is there a way to read/write XMP metadata using imagemagick?
like image 711
Anthony Avatar asked Nov 01 '22 21:11

Anthony


1 Answers

What you want to ask is "does ImageMagick support reading or writing XMP (descriptive) metadata?". The answer to that question, from reading the documentation, is no. ImageMagick reads (almost) all metadata from a file, but not descriptive metadata.

If for some reason you must use ImageMagick to extract XMP metadata, you could try to include a filter. Filters can be configured to process image files, but they are not part of ImageMagick itself.

like image 171
Ben Companjen Avatar answered Jan 04 '23 13:01

Ben Companjen