Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sterlp authored Apr 3, 2021
1 parent 4142b22 commit c7706d5
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,31 @@ java -jar svg2png
## CLI Usage

================================================================================
SVG to PNG
SVG to PNG

usage: svg2png
--android Android default config from mdpi 48x48 -> xxxhdpi
192x192.
--android-small Android Small default config from mdpi 24x24 ->
xxxhdpi 96x96.
-c <arg> JSON Config file for the file output.
-d <arg> Source directory with one or more files to convert.
-f <arg> Source file to convert.
-h <arg> Height of the output file.
-n <arg> New name to use for all output files.
-o <arg> Output directory where to put the file.
-w <arg> Width of the output file.
--android Android Icon 48dp mdpi 48x48 -> xxxhdpi 192x192.
--android-24dp Android 24dp icons, with suffix _24dp -- mdpi 24x24
-> xxxhdpi 96x96.
--android-36dp Android 36dp icons, with suffix _36dp -- mdpi 36x36
-> xxxhdpi 144x144.
--android-48dp Android 48dp icons, with suffix _48dp -- mdpi 48x48
-> xxxhdpi 192x192.
--android-icon Android Icon (Action Bar, Dialog etc.) config mdpi
36x36 -> xxxhdpi 128x128.
--android-launch Android Launcher Icon config mdpi 48x48 -> xxxhdpi
192x192.
--android-small Android Small default config from mdpi 24x24 ->
xxxhdpi 96x96.
-c <arg> JSON Config file for the file output.
-d <arg> Source directory with one or more files to convert.
-f <arg> Source file to convert.
-h <arg> Height of the output file.
-n <arg> New name to use for all output files.
-o <arg> Output directory where to put the file.
--unsecure Allow external resources in SVG.
-w <arg> Width of the output file.


## JSON Android Config Sample

Expand Down

0 comments on commit c7706d5

Please sign in to comment.