Replies: 1 comment
-
|
The PNGs are being generated from SVGs at runtime using a library, yes. We return a base64 encoded data URI that you just need to parse and decode, then write to disk. In Rust you can do it pretty simply with the data-url crate. If you're doing this many many times, it might be easier for you to render from SVG to PNG yourself though. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to add a script to my native app's build process. The script should download icons by name, style, size, etc. As a first step I tried manually downloading a PNG from the icon browser on the website. I notice the URL begins with
data:. Does this mean the PNGs are being generated from SVG inside the web page? If that is the case, then maybe my script should download the SVG from github and use a SVG renderer to create a PNG. (I'm writing my "script" in Rust, and I think there are some crates to do SVG rendering.)Beta Was this translation helpful? Give feedback.
All reactions