Is there any way to preserve XMP metadata after conversion of a "tif" file into "jpg" using convert command ?
Issue
- When trying to convert a .tif image into .jpg by using custom script,
convertcommand does not preserve XMP metadata properly on the .jpg file after conversion. - Here is the sample script being used for conversion:
SAMPLE SCRIPT:
$ cat sampleconversionscript
#!/bin/bash
# Uses ImageMagick convert utility to convert an input file (must be supported by ImageMagick)
# to a fixed-500px-width jpeg. The [0] indicates to take the top (zero-th) layer
# in a PSD file. If the file is not a PSD, the [0] is disregarded.
# Quality of JPEG compression is at 40% per specification.
rm final.jpg
nice convert $1[0] -resize 500 -quality 40 +profile !xmp,0 final.jpg
Environment
- Red Hat Enterprise Linux 6
- ImageMagick(IM) Version 6.5.4.7-6.el6_2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.