Claus Cyrny on  wrote...
| Hi all,
| 
| I'm new to this list, and right now I would like to convert an SVG
| file (from Inkscape; I saved it as 'plain SVG', though) into a
| 16-bit/channel PNG, which basically works, but there's no alpha
| channel (white background color instead).
| 
| I tried 'convert -compress none -depth 16 -fill FFFFFFFFFFFF0000
| -gamma 1.0 -sample 3996x3068 [filename].svg [filename].png',
| but there's still no alpha channel. (The SVG covers only  part of
| the Inkscape document; the remaining part should hopefully
| be transparent.) The part 'FFFFFFFFFFFF0000' (which I took from
| the ImageMagick web site) resulted in an error message, because
| the color wasn't recognized by ImageMagick. A '#' in front of the
| hex numbers didn't work, either; the same with 'rgba(0,0,0,0)'.
| 
| Does anybody  know a solution to this?
| 
First   --- read the image BEFORE trying to resize it..

Second try setting  -background None   to set transparency rather than a
default 'white' background.  The -fill is NOT the background, but a
fille color for drawn shapes.


   convert -density 100 -background None [filename].svg  \
           -compress none -depth 16 [filename].png

the -density is the pixel to inches  resolution to draw the SVG at.

And finally check out  http://www.imagemagick.org/Usage/draw/#svg
As unless you re-compiled IM for your system and have the RSVG libraries
installed  you may NOT get the result you want.


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
     Dungeons and Dragons Famous Last Words: 
                      `` C'mon DM, let's see some REAL monsters! ''
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to