ginebra/chrome/bedrockchrome/urlsearch.snippet/icons/svg_favicon_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 
       
     4 # toolbar icons
       
     5 ICON_WIDTH=32
       
     6 ICON_HEIGHT=32
       
     7 
       
     8 # toolbar icon borders
       
     9 #ICON_WIDTH=1
       
    10 #ICON_HEIGHT=30
       
    11 
       
    12 echo
       
    13 echo "Usage: $0 <list of svg files to convert>"
       
    14 echo "This script converts svg icons into png icons with w=$ICON_WIDTH h=$ICON_HEIGHT"
       
    15 echo "DPI is default, 90dpi"
       
    16 echo "Edit the script to change the size\n"
       
    17 echo "... Requires librsvg2-bin package from ubuntu\n"
       
    18 
       
    19 echo "CONVERTING the files listed below:"
       
    20 
       
    21 for i in $*; do
       
    22     rsvg-convert -w $ICON_WIDTH -h $ICON_HEIGHT $i -o `echo $i | sed -e s/svg$/png/`
       
    23     echo $i;
       
    24 done
       
    25