New fucking sha1 name
[oxy-cursors.git] / svgs / generate_pngs.sh
blob10ab016a1ad13056e0d633e5e402fb90f8ff63c2
1 #!/bin/bash
3 colors="blue yellow brown grey green violet red purple navy sea_blue emerald hot_orange white viorange"
4 #colors=$(ls)
5 oldDir=$(pwd)
6 SIZE="24"
8 for color in $colors; do
10 echo "Generating PNGs for the color: $color"
12 mkdir -p ../pngs
13 mkdir -p ../pngs/$color;
14 cp $color/*.svg ../pngs/$color/
15 cd ../pngs/$color/
17 #cleanup from previous pngs
18 rm *.png
20 for icon in $(ls *.svg); do
21 # if [ "$icon" != "half-busy.svg" ] && [ "$icon" != "fleur.svg" ];
22 # then
23 inkscape --without-gui --export-png=$( echo $icon | sed s/.svg// ).png --export-dpi=90 $icon 2> /dev/null; # --export-background-opacity=0 --export-width=$SIZE --export-height=$SIZE $icon 2> /dev/null;
24 # else
25 # inkscape --without-gui --export-png=$( echo $icon | sed s/.svg// ).png --export-background-opacity=0 --export-width=32 --export-height=32 $icon 2> /dev/null;
26 # fi
27 done
29 rm *.svg
30 cd $oldDir
31 done