boringdesigners / boring-avatars-site

Boring avatars playground
https://boringavatars.com
29 stars 7 forks source link

[FR] Allow PNG downloads #1

Open NightMachinery opened 3 years ago

jakeisnt commented 3 years ago

+1 for this. After forking the demo, I was able to add support via a library that converts SVG to HTML5 canvas, then to PNG, but it looks like such utilities only support a subset of the SVG specification so I wasn't able to get gradients working properly.

You can find that work here. Perhaps someone with more knowledge will be able to figure this out; it's also possible that another image processing pipeline entirely is necessary to do this.

PostPollux commented 1 year ago

+1 wanted to integrate it into a godot plugin. Unfortunately Godot being a game engine does not support loading SVGs at runtime.