How to build ImageMagick so svg is purely a delegate

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
tsdineen
Posts: 81
Joined: 2007-01-18T08:45:31-07:00

How to build ImageMagick so svg is purely a delegate

Post by tsdineen »

I have been trying to build ImageMagick tools, so the svg is completely a delegate, but I am having problems. I have tried builds 6.3.6 and 6.7.1, but both fail to display the image with

lnxlgn13:dev/tls>6.7.1/lnx/bin/identify ../dev/src/asvgv.svg
../dev/src/asvgv.svg SVG 800x600 800x600+0+0 8-bit DirectClass 18KB 0.050u 0:00.100
lnxlgn13:dev/tls>6.7.1/lnx/bin/display ../dev/src/asvgv.svg
display: must specify image size `/tmp/magick-aFTHyg8m' @ error/mvg.c/ReadMVGImage/184.

The 6.3.6 version shows the same message as display does. Furthermore, the config directory wasn't installed in either the share or lib directory for the 6.7.1 install. The magic.xml and delegates.xml are critical files for my process and need tweaks for my system to work.

Any help out there?

Thanks,
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to build ImageMagick so svg is purely a delegate

Post by fmw42 »

I am not sure I understand all of what you are saying, but you can get the RSVG delegate package and install that in place of the built-in SVG.
tsdineen
Posts: 81
Joined: 2007-01-18T08:45:31-07:00

Re: How to build ImageMagick so svg is purely a delegate

Post by tsdineen »

So, how does it pick it up? I have the rsvg in the delegates file for 6.3.6, but it gives me an error when I try to display it. My build of 6.7.1, didn't install a magic.xml or delegates.xml, and gives the same error when I try to display the svg file.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to build ImageMagick so svg is purely a delegate

Post by fmw42 »

First lets see if you installed RSVG properly and if IM sees it. (Did you install IM after installing the RSVG delegate?)

type the following:

convert -list format

and see what you get for SVG. On mine, I have:


SVG SVG rw+ Scalable Vector Graphics (RSVG 2.34.0)
SVGZ SVG rw+ Compressed Scalable Vector Graphics (RSVG 2.34.0)


You can also type

convert -list configure

and look at the line starting with DELEGATES and see if it lists rsvg


DELEGATES bzlib fftw fontconfig freetype gs jpeg jng jp2 lcms2 lqr lzma mpeg openexr png rsvg tiff x11 xml zlib


If you do not have these, then your RSVG install had an error or IM is not finding it when it does its install afterwards.
Post Reply