Skip to content

zduny/launcher-icon-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

launcher-icon-tool

Automatically resize image to approperiate versions of Android launcher icon drawables.

How to use

If you use Windows just download executable, 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.
  3. Then use following script (you can download it here, 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.

About

Automatically resize image to approperiate versions of Android launcher icon drawables.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors