Skip to content

PNG Support #39

@Stoeoef

Description

@Stoeoef

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions