File: convert-svgs.sh

package info (click to toggle)
codelite 12.0+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 95,112 kB
  • sloc: cpp: 424,040; ansic: 18,284; php: 9,569; lex: 4,186; yacc: 2,820; python: 2,294; sh: 312; makefile: 51; xml: 13
file content (13 lines) | stat: -rwxr-xr-x 357 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
files=`ls *.svg`

for file in $files
do
    echo "Converting file ${file}"
    filename="${file%.*}"
    inkscape $file --without-gui --export-png=12-${filename}.png --export-width=12 --export-height=12 

    ## 12x12 version (hi-res)
    inkscape $file --without-gui --export-png=12-${filename}@2x.png --export-width=24 --export-height=24 
done