https://github.com/zduny/launcher-icon-tool
Automatically resize image to approperiate versions of Android launcher icon drawables.
https://github.com/zduny/launcher-icon-tool
Last synced: 11 months ago
JSON representation
Automatically resize image to approperiate versions of Android launcher icon drawables.
- Host: GitHub
- URL: https://github.com/zduny/launcher-icon-tool
- Owner: zduny
- Created: 2014-08-03T15:12:51.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2020-03-14T21:35:34.000Z (about 6 years ago)
- Last Synced: 2025-02-10T11:44:49.875Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
launcher-icon-tool
================
Automatically resize image to approperiate versions of Android launcher icon drawables.
How to use
----------------
If you use Windows just download [executable](https://github.com/mrpyo/LauncherIconTool/raw/master/LIT.exe), put it in easily accessible place (for example desktop)
and drag and drop image file onto its icon.
SVG files
----------------
If you are creating your icon using vector editing software, there is a better way:
1. First export your image to **SVG** format.
2. Install [Inkscape](http://www.inkscape.org/en/).
3. Then use following script (you can download it [here](https://raw.githubusercontent.com/mrpyo/LauncherIconTool/master/LIT.bat), save it on desktop and drag and drop your **svg** file on it):
```
REM Set following path to your Inkscape location:
set INKSCAPE="C:\Program Files (x86)\Inkscape\Inkscape.exe"
%INKSCAPE% -e web_hi_res_512.png -w 512 -h 512 %1
mkdir res\drawable-xxxhdpi
%INKSCAPE% -e res\drawable-xxxhdpi\ic_launcher.png -w 192 -h 192 %1
mkdir res\drawable-xxhdpi
%INKSCAPE% -e res\drawable-xxhdpi\ic_launcher.png -w 144 -h 144 %1
mkdir res\drawable-xhdpi
%INKSCAPE% -e res\drawable-xhdpi\ic_launcher.png -w 96 -h 96 %1
mkdir res\drawable-hdpi
%INKSCAPE% -e res\drawable-hdpi\ic_launcher.png -w 72 -h 72 %1
mkdir res\drawable-mdpi
%INKSCAPE% -e res\drawable-mdpi\ic_launcher.png -w 48 -h 48 %1
```
It will create icons with all required sizes.
This method avoids creation of artifacts due to filtering when scaling large raster images.