Convert SVG > PNG: missing delegate?

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
pp1

Convert SVG > PNG: missing delegate?

Post by pp1 »

I needed ImageMagick 6.6 on an Ubuntu 10.04 machine, so I compiled 6.6.1-10 from source and have this running on this machine (this version is not in the repositories). However, when I try to convert a SVG file to PNG, I get this error:

Code: Select all

$ /usr/local/bin/convert draw11.svg test.png
convert: no decode delegate for this image format `/tmp/magick-XXkWoFuc' @ error/constitute.c/ReadImage/566.
convert: missing an image filename `test.png' @ error/convert.c/ConvertImageCommand/2970.
When I run convert -list format, I see the following (relevant) entries:

Code: Select all

SVG  SVG       -w+   Scalable Vector Graphics
Indicating that there is write support, but no read support for SVG. Could this be the problem? Also, I get this information from convert -list configure:

Code: Select all

$ convert -list configure

Path: /usr/local/lib/ImageMagick-6.6.1/config/configure.xml

Name          Value
-------------------------------------------------------------------------------
CC            gcc -std=gnu99 -std=gnu99
CFLAGS        -fopenmp -g -O2 -Wall -pthread
CONFIGURE     ./configure 
COPYRIGHT     Copyright (C) 1999-2010 ImageMagick Studio LLC
CPPFLAGS      -I/usr/local/include/ImageMagick
CXX           g++
CXXFLAGS      -g -O2 -pthread
DEFS          -DHAVE_CONFIG_H
DELEGATES     
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-fontconfig=no --with-gslib=no --with-fontpath= --with-rsvg=no --with-xml=no --with-perl=no
EXEC-PREFIX   /usr/local
HOST          x86_64-unknown-linux-gnu
LDFLAGS       -L/usr/local/lib 
LIB_VERSION   0x661
LIB_VERSION_NUMBER 6,6,1,10
LIBS          -lMagickCore -lm -lgomp -lpthread 
NAME          ImageMagick
PCFLAGS       -fopenmp
PREFIX        /usr/local
QuantumDepth  16
RELEASE_DATE  2010-10-25
VERSION       6.6.1
WEBSITE       http://www.imagemagick.org

Path: [built-in]

Name          Value
-------------------------------------------------------------------------------
NAME          ImageMagick
So I have no information whatsoever under DELEGATES. But I am not sure which files and how to install those, if this is the problem. Any help is appreciated.
posterChild

Re: Convert SVG > PNG: missing delegate?

Post by posterChild »

Total stab in the dark, but do you have libxml2 and freetype-2 installed at compile time. From the formats page:
Requires libxml2 and freetype-2. Note that SVG is a complex specification and support for the specification in ImageMagick is not complete.
http://www.imagemagick.org/script/formats.php

Again, total stab in the dark.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert SVG > PNG: missing delegate?

Post by fmw42 »

You have no DELEGATES installed. See your line starting with DELEGATES.

You need to install any delegates that are required for svg and png. Then reinstall IM

see http://www.imagemagick.org/download/delegates/
Post Reply