pngImage.Mutate desaturates an image #2792
-
So I have this code to overlay an SVG on top of a PNG: Things work fine if back.png is a colored image. But when it's a B&W image output.png gets desaturated. (I'm using .net 5)
This is overlay.svg: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
ImageSharp preserves the input image encoded format so if your PNG is grayscal on input, it's going to be grayscale on saving unless you specifically set the PNG metadata or use an explicit encoder. BTW. ImageSHarp.Drawing can parse an SVG into a path for drawing. |
Beta Was this translation helpful? Give feedback.
ImageSharp preserves the input image encoded format so if your PNG is grayscal on input, it's going to be grayscale on saving unless you specifically set the PNG metadata or use an explicit encoder.
BTW. ImageSHarp.Drawing can parse an SVG into a path for drawing.