converting svg with css to png

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
micheldanjou

converting svg with css to png

Post by micheldanjou »

Hi everybody,

I am trying to convert an SVG containing a reference to an external CSS file to a PNG but I am having some difficulties.

I am using the SVG and CSS from a mozilla example:
https://developer.mozilla.org/en/CSS/Ge ... G_graphics
The SVG and CSS display properly in Firefox, so I know for sure that these files are good.

The issue is that the PNG generated by IM only shows a quarter of a black circle, which bares no resemblance at all with what Firefox displays.
Are SVG referencing an external CSS supported by IM?

Please note that converting SVGs containing NO CSS works like a charm.

All the best,
Michel
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: converting svg with css to png

Post by magick »

ImageMagick does not support SVG with embedded style sheets.
gedq
Posts: 1
Joined: 2013-10-14T09:58:15-07:00
Authentication code: 6789

Re: converting svg with css to png

Post by gedq »

Is this still the case? Are there plans to add this?
heygeo
Posts: 1
Joined: 2014-07-02T08:18:24-07:00
Authentication code: 6789

Re: converting svg with css to png

Post by heygeo »

Hello,
Anything new about css stylesheet support ?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: converting svg with css to png

Post by snibgo »

IM doesn't support CSS sylesheets. Nor does Inkscape.
snibgo's IM pages: im.snibgo.com
Post Reply