Replies: 6 comments 7 replies
-
Hey there! Is it possible to give me an ETA on this? If not, that's fine. I can imagine that you might be busy. |
Beta Was this translation helpful? Give feedback.
-
My goal is to keep the official API instance running fast, stable and cost effective. That's why I did a little performance test today. I used a 4 core / 16GB GitHub Workspace environment for the test. I tested how many avatars in the size of 512x512px with the avatar style "Adventurer" can be created on average per second. The result for the PNG format is unfortunately not that impressive. SVG PNG (with sharp) PNG (with headless chrome) I knew that generating a PNG would be significantly slower, but not that it's at least 99.9% slower. So I can't offer it via the official API instance because then the cost would explode. To make a long story short: PNG support will be built into the API, but not enabled on the official instance. If there is interest in PNG output, unfortunately you have to host the API yourself. |
Beta Was this translation helpful? Give feedback.
-
The first alpha version of the upcoming API with PNG support is now available. You can find the documentation here: I would recommend to use only the 4.x routes for now. Version 5.0 is still the alpha version and quite buggy. Example URL: |
Beta Was this translation helpful? Give feedback.
-
It is now officially supported. |
Beta Was this translation helpful? Give feedback.
-
I'm glad that resvg-js is working well. Now we've also added a playground: https://resvg-js.vercel.app/ |
Beta Was this translation helpful? Give feedback.
-
Is PNG really supported inside the NPM package? Cant see anything in the API documentation here: https://avatars.dicebear.com/docs/installation The other mentioned URL https://api.dicebear.com/docs is 404. Thanks for any input |
Beta Was this translation helpful? Give feedback.
-
Some platforms (Discord in my case) do not parse or embed SVG images. It would be great if we could use the PNG file extension instead in cases like this.
Beta Was this translation helpful? Give feedback.
All reactions