Introducing 32-bit color depth support for SVG (new Cairo) #4503
Replies: 1 comment 10 replies
-
Hello @kstanikviacbs,
I think this would be OK -- just have a define We can't change the default output from |
Beta Was this translation helpful? Give feedback.
-
Hi there! As always. I need to start by saying: thank you for your amazing job :)
I'm reaching out for a help with quite common issue to address - libvips currently utilizes
CAIRO_FORMAT_ARGB32
format while rendering the SVGs which obviously leads to banding issues with grayscale gradients stretched over large images.What I've found out though is that since
1.17.2
Cairo introducedCAIRO_FORMAT_RGBA128F
which should help addressing the issue.Initially I assumed I might end up with a PR into libvips to switch to
CAIRO_FORMAT_RGBA128F
, but I guess this is a "no-go" since few supported Linux distros (stable ones) does not yet contain Cairo and librsvg versions supporting it.So I'm leaning towards having my own, custom builds provided, but I slightly struggle with figuring out what needs to be changed in
libvips/foreign/svgload.c
in order to make it work. Could someone guide me through required changes?Thanks in advance for help!
Beta Was this translation helpful? Give feedback.
All reactions