In my application, avatars are available for users to select, they will be generated randomly using the api of DiceBear, I searched in several forums and websites on the internet and I didn't find a way to:
1 - show this svg list that I generated with DiceBear's api; (Edit: This can be solved very easily using the react-native-svg library, the problem now is converting to PNG to send to the server!)
2 - How can I convert the selected svg into png to send to my app's server, which has an api all in PHP, and php doesn't have SVG support to do this conversion on the backend, I believe it has to be done on the front and sent in png!
Anyone have any idea how I can solve this problem? From in PHP, or with React Native to convert this svg?
Important information: I use EXPO and typescript; API in PHP;
The DiceBear API supports the PNG format since a few days.