Created
November 27, 2016 14:40
-
-
Save dw72/24dc5891b35b3a7ed53737272ed10b2d to your computer and use it in GitHub Desktop.
Generate and install png icons from svg file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
src=$1 | |
dst=${1%.*}.png | |
[[ -z "$2" ]] && type="apps" || type=$2 | |
for i in 16 22 24 32 64 128 | |
do | |
inkscape -z -e $dst -w $i -h $i $src | |
xdg-icon-resource install --context $type --size $i $dst | |
rm $dst | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
why no 48x48?