"Transcoding" delegates seem broken
Posted: 2011-11-23T12:27:21-07:00
I've been trying to achieve an ai(pdf) > eps > png conversion (going through eps to get boundingbox fitted to graphics).
I'm using IM 6.7.3-6 x64 Q16 and GS 9.02 x64 on Win7.
One would expect that...
...should invoke the delegate <delegate decode="pdf" encode="eps" ... -sDEVICE=epswrite
but instead the <delegate decode="ps:alpha" ... is invoked and the image is rendered.
Actually I haven't got any of the "direct converting" delegates to run.
Perhaps more troublesome I've tried to create my own format "pdf2png" with an custom decoding delegate and from what I can tell the %i correctly maps to the input file but %o doesn't map to the output file! After writing to %o IM will still complain that it can't open file XYZ which isn't the same that %o pointed to.
Here's a simple example illustrating this problem:
In ~/.magick/delegates.xml:
Command with output:
Notice how the two temp-filenames are different. Isn't that wrong?
/Andreas
I'm using IM 6.7.3-6 x64 Q16 and GS 9.02 x64 on Win7.
One would expect that...
Code: Select all
convert test.ai test.eps
but instead the <delegate decode="ps:alpha" ... is invoked and the image is rendered.
Actually I haven't got any of the "direct converting" delegates to run.
Perhaps more troublesome I've tried to create my own format "pdf2png" with an custom decoding delegate and from what I can tell the %i correctly maps to the input file but %o doesn't map to the output file! After writing to %o IM will still complain that it can't open file XYZ which isn't the same that %o pointed to.
Here's a simple example illustrating this problem:
In ~/.magick/delegates.xml:
Code: Select all
<delegate decode="ak" command="convert rose: "png:%o""/>
Code: Select all
c:\>convert -verbose ak: test.png
convert rose: "png:C:/Users/ANDREA~1.KAR/AppData/Local/Temp/magick-q6eCeGUC"
convert.exe: unable to open module file `C:\Program Files\ImageMagick-6.7.3-Q16\modules\coders\IM_MOD_RL_AK_.dll': No such file or directory @ warning/module.c/GetMagickModulePath/683.
convert.exe: no decode delegate for this image format `C:/Users/ANDREA~1.KAR/AppData/Local/Temp/magick-wikt5fLw' @ error/constitute.c/ReadImage/566.
convert.exe: missing an image filename `test.png' @ error/convert.c/ConvertImageCommand/3016.
/Andreas