RazrFalcon / resvg

An SVG rendering library.
Mozilla Public License 2.0
2.74k stars 220 forks source link

usvg: allow custom image decoding in FormatKind #772

Open amhndu opened 3 months ago

amhndu commented 3 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 3 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.