I'm still seeing this XMP error for ImageMagick 7.0.8-45 and 7.0.8-48 (the latest version.)
Code: Select all
magick --version
# Version: ImageMagick 7.0.8-45 Q16 x86_64 2019-05-18 https://imagemagick.org
# (Same results with: ImageMagick 7.0.8-48 Q16 x86_64 2019-06-08)
cd /tmp
curl -O http://maximejacques.com/pdf/test5p.pdf
magick test5p.pdf test5p.jpg
# magick: CorruptImageProfile `xmp' @ warning/profile.c/SetImageProfileInternal/1772.
I didn't know much about XMP metadata before, so this article was helpful:
https://www.pdflib.com/pdf-knowledge-ba ... -overview/.
The same site also has this online XMP validator tool:
https://www.pdflib.com/pdf-knowledge-ba ... validator/
I uploaded the
test5p.pdf PDF, and it parsed the XMP data, and validated it against all of the available PDF/A standards (PDF/A-1 and PDF/A-2/3). The validation tool reported that the XMP data is valid and doesn't contain any errors:
Code: Select all
<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?><x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="3.1-701">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="" xmlns:pdf="http://ns.adobe.com/pdf/1.3/">
<pdf:Producer>Microsoft® Word for Office 365</pdf:Producer></rdf:Description>
<rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:creator><rdf:Seq><rdf:li>Maxime Jacques</rdf:li></rdf:Seq></dc:creator></rdf:Description>
<rdf:Description rdf:about="" xmlns:xmp="http://ns.adobe.com/xap/1.0/">
<xmp:CreatorTool>Microsoft® Word for Office 365</xmp:CreatorTool><xmp:CreateDate>2019-03-14T23:06:56-04:00</xmp:CreateDate><xmp:ModifyDate>2019-03-14T23:06:56-04:00</xmp:ModifyDate></rdf:Description>
<rdf:Description rdf:about="" xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/">
<xmpMM:DocumentID>uuid:95F67DEE-BC1B-4AE4-A2B9-A4D4D999339B</xmpMM:DocumentID><xmpMM:InstanceID>uuid:95F67DEE-BC1B-4AE4-A2B9-A4D4D999339B</xmpMM:InstanceID></rdf:Description>
The converted images are totally fine, but the output is just a bit annoying for me. I have a test suite that runs through a lot of PDF processing functionality, so the test suite output looks like this:
Code: Select all
.............identify: CorruptImageProfile `xmp' @ warning/profile.c/SetImageProfileInternal/1772.
convert: CorruptImageProfile `xmp' @ warning/profile.c/SetImageProfileInternal/1772.
.identify: CorruptImageProfile `xmp' @ warning/profile.c/SetImageProfileInternal/1772.
convert: CorruptImageProfile `xmp' @ warning/profile.c/SetImageProfileInternal/1772.
........................identify: CorruptImageProfile `xmp' @ warning/profile.c/SetImageProfileInternal/1772.
convert: CorruptImageProfile `xmp' @ warning/profile.c/SetImageProfileInternal/1772.
.identify: CorruptImageProfile `xmp' @ warning/profile.c/SetImageProfileInternal/1772.
convert: CorruptImageProfile `xmp' @ warning/profile.c/SetImageProfileInternal/1772.
..........
I don't really want to use the -quiet flag, in case I miss something important in a future version. Would be great if this could be fixed!