ginebra/chrome/bedrockchrome/statusbar.snippet/icons/signal/svg_sig_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 # 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