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