As I tryed to convert an eps to a jpg I've found this bug:
ImageMagick-6.3.9-9
Ghostscript 9.0.4
In file 'coders\jpeg.c' at line 1649:
Code: Select all
xmp_profile=StringToStringInfo("http://ns.adobe.com/xap/1.0/");
ConcatenateStringInfo(xmp_profile,profile);
GetStringInfoDatum(xmp_profile)[28]='\0';
This generates an unreadable jpg-file because the xmp_profile should start with the namespace, a null and the profile.
I've testet it with the older ImageMagick-6.7.1-9 and there it works. So I compared the code with ImageMagick-6.7.1-9 and found that in file 'magick\string.c' the function 'StringToStringInfo' changed from
Code: Select all
string_info=AcquireStringInfo(strlen(string)+1);
Code: Select all
string_info=AcquireStringInfo(strlen(string));
Code: Select all
xmp_profile=StringToStringInfo("http://ns.adobe.com/xap/1.0/");
Solution:
Add a space to the namespace
Code: Select all
xmp_profile=StringToStringInfo("http://ns.adobe.com/xap/1.0/ ");
Alex