Missing SVG support?

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
wildsky
Posts: 1
Joined: 2017-11-29T10:54:51-07:00
Authentication code: 1152

Missing SVG support?

Post by wildsky »

When converting an SVG to png, I'm getting this error:

Uncaught exception 'ImagickException' with message 'no decode delegate for this image format'

On a php_info, I see that SVG is not listed in the supported formats:

3FR, A, AAI, AI, ART, ARW, AVI, AVS, B, BGR, BGRA, BIE, BMP, BMP2, BMP3, BRF, C, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, FAX, FITS, FRACTAL, FTS, G, G3, GIF, GIF87, GRADIENT, GRAY, GROUP4, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, ICB, ICO, ICON, INFO, INLINE, IPL, ISOBRL, J2C, J2K, JBG, JBIG, JNG, JP2, JPC, JPEG, JPG, JPX, K, K25, KDC, LABEL, M, M2V, M4V, MAC, MAP, MAT, MATTE, MEF, MIFF, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MTV, MVG, NEF, NRW, NULL, O, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG24, PNG32, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, R, RADIAL-GRADIENT, RAF, RAS, RGB, RGBA, RGBO, RLA, RLE, SCR, SCT, SFW, SGI, SHTML, SR2, SRF, STEGANO, SUN, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UIL, UYVY, VDA, VICAR, VID, VIFF, VST, WBMP, WMV, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, Y, YCbCr, YCbCrA, YUV

This is version ImageMagick 6.7.7-10 2017-10-19 Q16

I thought IM had an internal renderer for SVG. Do I still need to add this support manually somehow?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Missing SVG support?

Post by fmw42 »

What was your exact command line? What is your platform? ImageMagick has an internal MSVG renderer for SVG but it is not as good as RSVG which is not as good as Inkscape. You might consider upgrading to RSVG or Inkscape. Install the RSVG delegate and reinstall ImageMagick or install Inkscape. Inkscape may be too new in ImageMagick for IM 6.7.7.10. I do not recall when it was allowed.

Nevertheless, you should be able to use the internal MSVG renderer. Can you post a link to your SVG input?

What do you get from

convert -list configure

for the line starting with DELEGATES? Does it include xml? I believe you need that to use the MSVG renderer.
Post Reply