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

Add support for rendering raster images #30

Closed

Conversation

ivantishchenko
Copy link

Resolves #29. This extension allows us to render raster images alongside vector graphics.

This can be used to add support for rendering an <image> tag in SVG. An <image> tag contains embedded raster images. Some SVG describe vector geometric shapes on top of raster textures.
sammycage/lunasvg#113
sammycage/lunasvg#13

Here is an example image produced with plutovg_image. There are 4 different raster textures under the vector geometric shape of a face.
texture

@sammycage
Copy link
Owner

Interesting! Looking forward to seeing this merge and the positive impact it brings to SVG rendering! 👏🚀

@ivantishchenko
Copy link
Author

@sammycage Thank you for the feedback! What is the best way to proceed? Could this code be merged into the main branch of plutovg?

Afterwards, I would love to use it from lunasvg to finish the implementation of <image>. Should this code also be committed in one commit to the repository of lunasvg to patch its copy of plutovg? Alternatively, the repository lunasvg can use plutovg as a submodule. This way the changes will be applied to plutovg only and lunasvg would just reuse them.

https://github.com/sammycage/lunasvg/tree/master/3rdparty/plutovg

@sammycage
Copy link
Owner

Resolved in the latest version.

@sammycage sammycage closed this Jul 3, 2024
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.

Add support for bitmap rendering
2 participants