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

feat: add raw image to allow flexible resolvers #799

Closed
wants to merge 1 commit into from

Conversation

amhndu
Copy link

@amhndu amhndu commented Aug 4, 2024

Adds a RawImage image kind to usvg and a transparent decode_raster implementation in resvg. This allows writing flexible ImageHrefResolver that can support additional image formats. Another use case would be to allow alternate implementations, but with zunejpeg merged, I find it less important.

Closes #772

I'm unsure about the xml writer implementation, but I've added a hack for now

@RazrFalcon
Copy link
Owner

Sorry, but this is not how raster data is intended to be used. #772 would require much more work than that.

@RazrFalcon RazrFalcon closed this Aug 5, 2024
@amhndu
Copy link
Author

amhndu commented Aug 10, 2024

I'm happy to refactor and follow whatever approach you have in mind

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 this pull request may close these issues.

usvg: allow custom image decoding in FormatKind
2 participants