convert (6.5.7.8-1ubuntu1) generates a broken EPS file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
imagemagick (Debian) |
Fix Released
|
Unknown
|
|||
imagemagick (Ubuntu) |
Fix Committed
|
Undecided
|
broucaries |
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://
2. Try to convert it to EPS
$ convert STILLINGS_
3. Check the result
$ gv STILLINGS_
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://
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://
1508 profile=
1509 if (profile != (StringInfo *) NULL)
1510 {
1511 /*
1512 Embed XML profile.
1513 */
1514 (void) WriteBlobString
1515 for (i=0; i < (long) GetStringInfoLe
1516 (void) WriteBlobByte(
1517 (void) WriteBlobString
1518 }
1519 value=GetImageP
=======
Because this is a new feature, its disabling will not affect anyone. The output will be exactly as it was before.
Changed in imagemagick (Ubuntu): | |
assignee: | nobody → broucaries (roucaries-bastien+bugs) |
status: | New → Confirmed |
Changed in imagemagick (Debian): | |
status: | Unknown → Confirmed |
Changed in imagemagick (Debian): | |
status: | Confirmed → Fix Released |
Changed in imagemagick (Ubuntu): | |
status: | Confirmed → Fix Committed |
In the mean-time, try adding +profile xmp to the command line to remove the profile before its saved to EPS.