linebender / resvg

An SVG rendering library.
Apache License 2.0
2.84k stars 229 forks source link

usvg: allow custom image decoding in FormatKind #772

Open amhndu opened 5 months ago

amhndu commented 5 months ago

Currently, only JPEG, PNG and GIF are supported. A FormatKind::Custom or FormatKind::Pixmap would allow for greater flexibility and the clients can provide their own image decoding.

I'll be happy to make a PR if this seems like a good idea.

RazrFalcon commented 5 months ago

Right now, bitmaps decoding is done on the resvg side, but your change would require to move it to usvg. This would be a pretty serious change.

I know that bitmaps handling is somewhat restrictive right now, but I don't have time to rework it right now.