mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-01-12 22:47:34 +08:00
19 lines
505 B
Bash
Executable File
19 lines
505 B
Bash
Executable File
#!/bin/bash
|
|
# script from: https://gist.github.com/peoplesbeer/8af70a90e7eb1c66510b
|
|
|
|
for file in "$@"
|
|
do
|
|
s=${file##*/}
|
|
base=${s%.svg}
|
|
|
|
echo 'Converting' $file'...'
|
|
|
|
mkdir -p out
|
|
|
|
convert -density 1200 -background none -resize "50x50" "${file}" "out/${base}@2x.png"
|
|
convert -density 1200 -background none -resize "75x75" "${file}" "out/${base}@3x.png"
|
|
|
|
#inkscape --export-png "out/${base}@2x.png" -h 2*$size "${file}"
|
|
#inkscape --export-png "out/${base}@3x.png" -h 3*$size "${file}"
|
|
|
|
done |