I need to convert SVG files to PNG files at first launch of a game and then save these PNG files to some assets folder. I'm wondering if i can achieve it on both Desktop and Android. The reason why i want to use SVG is to have resolution-independent assets at first and then convert them into PNG file with needed size according to user's screen resolution so there is no need to store multiple files per one asset. Is it possible to use one library or should i use different solutions for Desktop and Android? I'm using libGDX framework.
Note that i don't need to convert to PDF or using JavaScript as someone incorrectly decided.
Any other ways to achieve resolution independency will be highly appreciated.