[Bug 504122] Re: convert (6.5.7.8-1ubuntu1) generates a broken EPS file
broucaries
504122 at bugs.launchpad.net
Sat Jul 21 22:30:35 UTC 2012
** Changed in: imagemagick (Ubuntu)
Status: Confirmed => Fix Committed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to imagemagick in Ubuntu.
https://bugs.launchpad.net/bugs/504122
Title:
convert (6.5.7.8-1ubuntu1) generates a broken EPS file
Status in “imagemagick” package in Ubuntu:
Fix Committed
Status in “imagemagick” package in Debian:
Fix Released
Bug description:
Binary package hint: imagemagick
The problem introduced in Imagemagick 6.5.7.8-1ubuntu1 (lucid). Karmic
Koala does not have this problem, because it uses an old version of
Imagemagick that does not try to generate embedded XMP comments when
convert JPEG file to EPS.
How to reproduce the problem:
1. Get any JPEG file using XMP extension. For instance, this:
$ wget
http://www.stockartistsalliance.org/files/STILLINGS_Jamey_SAAweb_0.jpg
2. Try to convert it to EPS
$ convert STILLINGS_Jamey_SAAweb_0.jpg STILLINGS_Jamey_SAAweb_0.eps
3. Check the result
$ gv STILLINGS_Jamey_SAAweb_0.eps
Ghoscript will produce an error. Moreover, a close inspection in any text editor will reveal that XMP is incorrect embedded. See the segement between `%begin_xml_code' and `%end_xml_code'. And here is an example how XMP comment can be embedded to EPS correctly:
http://mep.fi/cgi-bin/viewvc.cgi/*checkout*/gurvi/scopegui.eps?revision=1.1.1.1&root=cvs
I have downloaded and tested the last upstream release (6.5.8-10), and
it has the same problem.
I suggest to report the problem to the upstream, and meanwhile to
disable generating XMP comments by commenting out the following lines
from coders/ps.c.
==================================================================================
http://trac.imagemagick.org/browser/ImageMagick/trunk/coders/ps.c
1508 profile=GetImageProfile(image,"xmp");
1509 if (profile != (StringInfo *) NULL)
1510 {
1511 /*
1512 Embed XML profile.
1513 */
1514 (void) WriteBlobString(image,"\n%begin_xml_code\n");
1515 for (i=0; i < (long) GetStringInfoLength(profile); i++)
1516 (void) WriteBlobByte(image,GetStringInfoDatum(profile)[i]);
1517 (void) WriteBlobString(image,"\n%end_xml_code\n");
1518 }
1519 value=GetImageProperty(image,"label");
==================================================================================
Because this is a new feature, its disabling will not affect anyone.
The output will be exactly as it was before.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/504122/+subscriptions
More information about the foundations-bugs
mailing list