[Pkg-gmagick-im-team] Bug#478538: [imagemagick] New patch

Nick Wellnhofer wellnhofer at aevum.de
Wed Jul 29 22:55:35 UTC 2009


Bastien ROUCARIES wrote:
> Le mercredi 29 juillet 2009 23:01:40, vous avez écrit :
>> Then install the packages without -extra and try to convert an SVG file:
>>
>> $ sudo dpkg -i libmagick10_6.3.7.9.dfsg2-1~lenny1_i386.deb
>> $ sudo dpkg -i imagemagick_6.3.7.9.dfsg2-1~lenny1_i386.deb
>> $ convert Debian-OpenLogo.svg Debian-OpenLogo.png
>> sh: wmf2eps: command not found
>> convert: Delegate failed `"wmf2eps" -o "%o" "%i"'.
> This message worry me. Does it show on the command line for converting a jpg 
> to png ?

Converting JPGs or GIFs works fine.

> Moreover message are not really useful. Care to forward to upstream in order 
> to improve message in case of missing delegate ?.

Well, if ImageMagick doesn't find a coder library in
/usr/lib/ImageMagick-6.3.7/modules-Q16/coders that can handle SVGs it
falls back to the delegate commands defined in
/usr/lib/ImageMagick-6.3.7/config/delegates.xml . This file has an entry
to convert SVGs using the command wmf2eps:

<delegate decode="svg" command="&quot;wmf2eps&quot; -o &quot;%o&quot;
&quot;%i&quot;"/>

The name of wmf2eps is of course confusing in this case. But it can
handle SVG files.

If you delete the SVG entry from delegates.xml the error message becomes:

$ convert Debian-OpenLogo.svg Debian-OpenLogo.png
convert: no decode delegate for this image format `Debian-OpenLogo.svg'.
convert: missing an image filename `Debian-OpenLogo.png'.

Nick





More information about the Pkg-gmagick-im-team mailing list