Page 1 of 1

"The following tags were not closed: x:xmpmeta, rdf:RDF"

Posted: 2013-08-25T03:57:00-07:00
by Gaploid
Hi,
Looks like there is some issues with converting eps to jpeg (convert.exe XXX.eps yyyy.jpeg). I`v tried to convert this file https://dl.dropboxusercontent.com/u/739 ... raphic.eps to jpeg and got this file https://dl.dropboxusercontent.com/u/7392238/PAPER.jpeg the result file is corrupted with this error "following tags were not closed: x:xmpmeta, rdf:RDF, rdf:Description, xmpTPg:SwatchGroups, rdf:Seq, rdf:li, xmpG:Colorants, rdf:Seq, rdf:li.". If i convert it to png the result file is fine. I'm not sure is that a problem of imagemagick or ghostscript.

Victor

Re: "The following tags were not closed: x:xmpmeta, rdf:RDF"

Posted: 2013-08-25T07:39:06-07:00
by snibgo
What version of IM and what platform? What software shows the errors?

On IM v6.8.6-5 on Windows 7, renaming your file "paper.eps" and doing ...

Code: Select all

convert paper.eps p.jpg
... Windows Photo Viewer complains that p.jpg is corrupt. However, Gimp and IM's identify and convert can all read it.

Code: Select all

convert paper.eps paper.png
All software can read p.png with no problem.

Re: "The following tags were not closed: x:xmpmeta, rdf:RDF"

Posted: 2013-08-27T08:22:46-07:00
by Gaploid
Hi,
This was done with latest version of IM:

Code: Select all

C:\Users\Gaploid\Desktop\ImageMagick-6.8.6-9>convert.exe -version
Version: ImageMagick 6.8.6-9 2013-08-17 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib freetype jbig jng jp2 jpeg lcms png ps png tiff webp x xml zlib
And latest version ghostscript - 9.09 on windows 7 machine. This error shows standard windows photo viewer and standard image viewer on windows phone

Re: "The following tags were not closed: x:xmpmeta, rdf:RDF"

Posted: 2013-08-27T08:39:22-07:00
by snibgo
I agree that there is a problem. IM should not create a bad JPEG.

jpegtran throws many errors on my p.jpg.

A developer would need to investigate.

Re: "The following tags were not closed: x:xmpmeta, rdf:RDF"

Posted: 2013-08-27T09:27:09-07:00
by Gaploid
Thanks any time-frame?

Re: "The following tags were not closed: x:xmpmeta, rdf:RDF"

Posted: 2013-08-27T10:06:18-07:00
by snibgo
Sorry, I'm not a developer.

A workaround is to save in some other format then read from that format, eg:

Code: Select all

convert paper.eps -write temp.png +delete temp.png p2.jpg
(Using .miff as the intermediate format would be faster, but it seems to carry the bad metadata across to the output file.)

Or another simpler workaround:

Code: Select all

convert paper.eps -strip p2.jpg

Re: "The following tags were not closed: x:xmpmeta, rdf:RDF"

Posted: 2013-08-27T10:24:01-07:00
by Gaploid
I can just use png as an output. That is fine for me.

Re: "The following tags were not closed: x:xmpmeta, rdf:RDF"

Posted: 2014-06-06T03:31:35-07:00
by Gaploid
Guys any update on this bug?

Re: "The following tags were not closed: x:xmpmeta, rdf:RDF"

Posted: 2014-06-06T03:56:23-07:00
by dlemstra
I will take a look at it.