Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usvg: allow custom image decoding in FormatKind #772

Open
amhndu opened this issue Jun 4, 2024 · 1 comment
Open

usvg: allow custom image decoding in FormatKind #772

amhndu opened this issue Jun 4, 2024 · 1 comment

Comments

@amhndu
Copy link

amhndu commented Jun 4, 2024

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants