equal
deleted
inserted
replaced
1 #!/bin/sh |
|
2 |
|
3 # icons |
|
4 ICON_WIDTH=20 |
|
5 ICON_HEIGHT=20 |
|
6 |
|
7 echo |
|
8 echo "Usage: $0 <list of svg files to convert>" |
|
9 echo "This script converts svg icons into png icons with w=$ICON_WIDTH h=$ICON_HEIGHT" |
|
10 echo "DPI is default, 90dpi" |
|
11 echo "Edit the script to change the size\n" |
|
12 echo "... Requires librsvg2-bin package from ubuntu\n" |
|
13 |
|
14 echo "CONVERTING the files listed below:" |
|
15 |
|
16 for i in $*; do |
|
17 rsvg-convert -w $ICON_WIDTH -h $ICON_HEIGHT $i -o `echo $i | sed -e s/svg$/png/` |
|
18 echo $i; |
|
19 done |
|
20 |
|