Convert transparent svg to png #184
Comments
It seems due to ImageMagick’s poor support of SVG. Although I heard that it can be solved if ImageMagick is forced to use Inkscape as its SVG delegate (see delegates.xml), but I’m not sure about that. |
You can do it with the ImageMagick command line utility: convert -background transparent file.svg file.png It's important to supply |
The bug is fixed in 0.3.8, a just released latest version. |
Confirmed. Thanks a lot! |
I have the same issue with Wand 0.6.1 and IM 6.9.10-23 with Inkscape delegate. |
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
For reference, after multiple different types of attempts, I manage to get it working with: from wand.color import Color
from wand.image import Image
with Image(filename=path, background=Color('transparent')) as image:
… |
I'm trying to convert a SVG file with transparent background to PNG, but the outcome always has a white background. I'm using
Please assist me.
The text was updated successfully, but these errors were encountered: