svg to png yields a white background #939
Answered
by
dlemstra
stanley-zenfolio
asked this question in
Help
-
Converting the following svg to png gives a white box. How can I get rid of the white box and make it transparent or no color? I used the following code to convert. |
Beta Was this translation helpful? Give feedback.
Answered by
dlemstra
May 29, 2021
Replies: 2 comments
-
You can change the background color of the var settings = new MagickReadSettings()
{
BackgroundColor = MagickColors.Transparent
};
using var image = new MagickImage(bytes, settings); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dlemstra
-
thanks
…On Sat, May 29, 2021 at 2:51 AM Dirk Lemstra ***@***.***> wrote:
You can change the background color of the svg file with the ReadSettings:
var settings = new MagickReadSettings()
{
BackgroundColor = MagickColors.Transparent
};using var image = new MagickImage(bytes, settings);
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#939 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL5PIGYANZJKSRBP5CFRGZTTQC2JRANCNFSM45OR6KVA>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can change the background color of the
svg
file with theReadSettings
: