aboutsummaryrefslogtreecommitdiffstats
path: root/data/icons/generate-png.sh
blob: ce6d585c59874eb874ab44971ec25e935e4f725d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh

for F in *.svg
do
        for S in "16" "22" "24" "32" "48"
        do
                SIZE="$S"x"$S"
                D=$(echo $F | sed -e "s/scalable/$SIZE/g" | sed -e "s/.svg/.png/")
                if [ ! -e $D ]
                then
                        inkscape --export-png=$D -w $S -h $S $F
                fi
        done

done