As you know, ImageMagicK is powerfully library on linux, that is used to convert or edit image.
Now, It is small command to help you convert all svg file in directory to png file with transparent background
1 |
for file in ../svgfile/*.svg;do sudo convert -background none "$file" "`basename "$file" .svg`".png;done |
Please make note that ImageMagick was installed on you linux.
With Ubuntu, you can use command below to install ImageMagick
1 |
sudo apt-get install imagemagick |
It is simple.