SVG file support installation

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Eisdieler

SVG file support installation

Post by Eisdieler »

Hello,
I'm trying to get SVG file support running on ImageMagicks convert but wasn't successful up to now. As http://www.imagemagick.org/script/formats.php tells me, both lfreetype and lxml2 must be installed to get SVG support. I installed both of them and run ./configure which produces a delegate.xml file where still wmf2eps is listed as SVG delegate and in configure.xml SVG isn't mentioned in the DELEGATES section and lxml2 isn't listed in the LIBS section, even if I'm running ./configure LIBS=-lxml2.

Can anyone give me a guide through the installation of SVG support in IM? Your help would be really appreciated

Regards

Eisdieler
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: SVG file support installation

Post by magick »

Run the configure script and verify that RSVG and XML2 is validated by checking the last 50 or so lines of output. If they are not, check config.log to determine why they failed to validate and fix the problem. Rerun the configure script until both are validated and build and install. You should now be able to process SVG images.

To verify if an existing binary build supports SVG, type
  • identify -list format
Associated with the SVG tag you will find the RSVG version #, e.g.
  • SVG SVG rw+ Scalable Vector Graphics (RSVG 2.22.2)
Eisdieler

Re: SVG file support installation

Post by Eisdieler »

Thank you for your help!

Does this (snippet of the output of the configure script):

Code: Select all

checking for XML...
checking for xml2-config... xml2-config
checking libxml/parser.h usability... yes
checking libxml/parser.h presence... yes
checking for libxml/parser.h... yes
checking for xmlParseExternalEntity in -lxml2... yes
checking if XML package is complete... yes
tell me, that XML2 is found and could be used?
Post Reply