-
Notifications
You must be signed in to change notification settings - Fork 29
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
PNG Support #39
Comments
|
I think that using something like |
Is this on the roadmap for a future release / are you interested in PR's for adding |
Reading the 1.0 roadmap .png support seems to be planned. Is there anything ongoing for implementing this?
Otherwise, the easiest way seems to rely on an existing svg renderer like librsvg or resvg. Exporting an svg would consists of creating the svg root node, finding good export options and handing those over to the renderer.
The major downside of this approach, despite the increased compile times, is in my opinion the dependency on a system library like cairo or qt. resvg allows to choose from these, librsvg is based on cairo. Thus, it may be appropriate to hide these backends behind feature flags.
As a plus, many more image formats should be exportable. For resvg, I was able to export .bmp, .jpg, .png and probably more.
I could offer a hand for implementing this, just let me know about your preferences.
The text was updated successfully, but these errors were encountered: