ginebra/chrome/unusedIcons/bedrockToolbarAlpha1/svg_toolbar_convert.sh
branchGCC_SURGE
changeset 8 2e16851ffecd
parent 2 bf4420e9fa4d
parent 6 1c3b8676e58c
equal deleted inserted replaced
2:bf4420e9fa4d 8:2e16851ffecd
     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