

We could overcome this in Photoshop by using Smart Objects and creating only a singular app icon that will automatically scale down to all of the necessary sizes. And then there’s the optional icons ( settings, toolbar, navigation bar, tab bar, et cetera).

It’s mandatory to submit app icons in a range of sizes, for various use-cases, that are compatible with both retina and non-retina screens. Both Apple and Android employ a Human Interface Guideline that outlines the recommendations and requirements for creating an app icon to accompany your application. "Ĭonvert ic_launcher.png -resize 144x144 drawable-xxhdpi/ic_launcher.pngĬonvert ic_launcher.png -resize 96x96 drawable-xhdpi/ic_launcher.pngĬonvert ic_launcher.png -resize 72x72 drawable-hdpi/ic_launcher.pngĬonvert ic_launcher.png -resize 48x48 drawable-mdpi/ic_launcher.How to Create an Icon Design Workflow in Sketch App 3ĭesigning an app icon is no easy task. # is distributed under GNU GPL v3 license.Įcho " Creating different dimensions (dips) of "$1". # This free software comes with ABSOLUTELY NO WARRANTY and drawables_dpis_creation.sh my_cool_xxhdpi_image.png drawables_dpis_creation.sh ic_launcher.png # folder and execute it passing the image filename as argument # Place this script, as well as the source image, inside res # creates different dpis resources and the necessary folders # Given an xxhdpi image or an App Icon (launcher), this script and then it will take few seconds and then you will magically get all the variables of the drawables.Ī bash script using ImageMagick (convert) as per CommonsWare's answer:Īdded folder creation and argument check thanks to Kishan Vaghela #!/bin/sh If the origin image is xxhdpi like in my case select "xxhdpi " as "Source Resoultion". Now select which dimension the origin image is. Now select "the Single " image you want different variations of drawables.Ħ. Now right-click on the drawable folder and navigate to New>Batch Drawable Importĥ. As you can see in the following screencap, there is only one drawable hereĤ. Install the plugin manually as provided in the ReadME 2. I will try to explain the process in step wise basis, so that it will be simple to understand to anyone. If you want quick and easy way visit or they work with iOS as well. You can still follow this answer after installing the plugin manually. The old way of installing the plugin doesn't work anymore but a fork of original plugin is still functional here.
