diff --git a/.gitignore b/.gitignore index 3935b3f..5ebb39c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ node_modules build/ *.log notes.txt -output \ No newline at end of file +output +converted \ No newline at end of file diff --git a/convert.py b/convert.py new file mode 100644 index 0000000..3e42e84 --- /dev/null +++ b/convert.py @@ -0,0 +1,7 @@ +import os +import cairosvg + +for file in os.listdir('./output'): + name = file.split('.svg')[0] + print('Converting ' + './output/' + name + '.svg' + ' -> ./converted/' + name + '.png') + cairosvg.svg2png(url='./output/' + name + '.svg', write_to='./converted/' + name + '.png') \ No newline at end of file