Re: Converting SVG images to PNG with transparent background

Bob Friesenhahn <[email protected]> Thu, 11 Mar 2010 12:03:51 -0600 (CST)
Newsgroups gmane.comp.video.graphicsmagick.tools
Message-ID <[email protected]>
On Thu, 11 Mar 2010, Andrew Zabolotny wrote:
>
> Now for some reasons I'm trying to switch to GraphicsMagick. The
> command line above worked without problems, however it resulted in
> something like a 1-bit alpha channel (pixels are either absolutely
> transparent or absolutely opaque), like in the result below:

Add

   -debug coder

prior to out.png to see what settings are used for the PNG.

Note that ImageMagick may be using librsvg or the rsvg utility to 
render the SVG and this will lead to different results than if the 
built-in SVG renderer is used.  The built-in SVG renderer is not very 
good according to today's standards.

It should be fairly easy to add use of rsvg via an entry 
in delegates.mgk but the existing SVG coder would need to be disabled 
somehow.

Bob
--
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev