Created
August 27, 2020 18:16
-
-
Save doganoo/552034fc990d3fb52a8493885b5d9031 to your computer and use it in GitHub Desktop.
Inkscape image resizing, needed once for android icons
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
var=1 | |
# File source am Mac | |
# for file in /Users/dogano/Desktop/new/brazil.xcf | |
# File source Linux | |
for file in /home/dogano/Schreibtisch/flags_origin/*.svg | |
do | |
echo $file | |
name=$(basename "$file" ".svg") | |
echo "$name" | |
# Export am Mac mit Groesse | |
# /Applications/Inkscape.app/Contents/Resources/bin/inkscape $file --export-png=export/$name.png -w72 -h72 | |
# Export Linux mit Groesse | |
# /usr/bin/inkscape $file --export-png=/home/dogano/Schreibtisch/export/flagspng/$name.png -w72 -h72 | |
# Export Linux ohne Groesse, mit DPI | |
# /usr/bin/inkscape $file --export-dpi=500 --export-png=/home/dogano/Schreibtisch/export/flagspng/$name.png | |
# Export Linux ohne Groesse, | |
/usr/bin/inkscape $file --export-png=/home/dogano/Schreibtisch/export/flagspng/$name.png -w100 -h50 | |
# /usr/bin/inkscape $file --export-png=/home/dogano/Schreibtisch/export/hdpi/$name.png -w72 -h72 | |
# /usr/bin/inkscape $file --export-png=/home/dogano/Schreibtisch/export/ldpi/$name.png -w36 -h36 | |
# /usr/bin/inkscape $file --export-png=/home/dogano/Schreibtisch/export/mdpi/$name.png -w48 -h48 | |
# /usr/bin/inkscape $file --export-png=/home/dogano/Schreibtisch/export/xhdpi/$name.png -w96 -h96 | |
# /usr/bin/inkscape $file --export-png=/home/dogano/Schreibtisch/export/xxhdpi/$name.png -w180 -h180 | |
var=$((var+1)) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment