Does -resample update the XMP profile

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
axelrose
Posts: 96
Joined: 2008-12-16T06:01:27-07:00

Does -resample update the XMP profile

Post by axelrose »

Hello,

just wondering whether I can expect IM updating the XMP profile when using the -resample operation.

As a demonstration:

# create a 150dpi TIFF file
convert rose: -units PixelsPerInch -density 150x150 rose.150.tif
# insert XMP Profile data for resolution
exiftool -XMP:XResolution=150 -XMP:YResolution=150 rose.150.tif
# check success of exiftool update
exiftool -XMP:XResolution -XMP:YResolution rose.150.tif
X Resolution : 150
Y Resolution : 150

# now resample to 75dpi:
convert 150dpi.tif -resample 75x75 75dpi.tif
# and check for updated XMP profile
exiftool -XMP:XResolution -XMP:YResolution rose.75.tif
X Resolution : 150
Y Resolution : 150

I would update the XMP data myself if IM does not do this for.
In case IM would do this I'd wait for a fix.


Thanks for your time
Axel
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Does -resample update the XMP profile

Post by magick »

ImageMagick updates a few fields in the EXIF profile but we have not gotten around to updating the XMP fields. Its on our list of things to do with no current ETA.
Post Reply