Size: 875
Comment:
|
← Revision 5 as of 2023-05-26 15:11:24 ⇥
Size: 920
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
Inkscape is a Free and open source vector graphics editor for GNU/Linux, Windows and MacOS X. | Inkscape is a Free and open source '''vector graphics editor''' for GNU/Linux, Windows and MacOS X. |
Line 9: | Line 9: |
* inkscape processing.svg --export-png=processing_xhdpi.png | {{{#!highlight sh inkscape processing.svg --export-png=processing_xhdpi.png }}} |
Line 12: | Line 14: |
* sudo apt install imagemagick * convert processing_xhdpi -resize 75% processing_hdpi.png |
{{{#!highlight sh sudo apt install imagemagick convert processing_xhdpi -resize 75% processing_hdpi.png }}} |
Inkscape
Inkscape is a Free and open source vector graphics editor for GNU/Linux, Windows and MacOS X.
Generate png from svg
1 inkscape processing.svg --export-png=processing_xhdpi.png
Resize png image by percentage value
Script genimages.py
1 import os
2 import sys
3
4 files = os.listdir('.')
5
6 for file in files:
7 if "_xhdpi" in file:
8 print("convert %s -resize 75%% %s "%(file, file.replace("_xhdpi","_hdpi")))
9 print("convert %s -resize 50%% %s "%(file, file.replace("_xhdpi","_mdpi")))
10 print("convert %s -resize 25%% %s "%(file, file.replace("_xhdpi","_ldpi")))