svg to png convert imagemagick

C++
inkscape -w 1024 -h 1024 input.svg --export-filename output.png

Source

Also in C++: