Files
neomouse/scripts/convertor.sh

11 lines
372 B
Bash

#!/bin/bash
# run in the "scalable folder"
find . -type d -print0 | parallel -0 mkdir ./256/{/.} ./2048/{/.}
find -name "*.svg" | parallel inkscape {} --export-height=2048 --export-png=./2048/{.}.png ';' inkscape {} --export-height=256 --export-png=./256/{.}.png
cd ./256
mkdir additional
find additional* -name "*.png" | parallel -m mv {} additional
rm -r additional-*