Are You Using AI In Your Job?

We want to understand the real-world applications of AL and ML in business and the impact it will have on all our jobs.

Want to help? Complete the survey, your insights could make a big difference. It will just take one minute.
You'll be the first to get access to the final report.-->

A Guide to Creating App Icons Using Stable Diffusion AI

Bobby Gill | January 22, 2024

At BlueLabel, we’re excited by the possibilities that generative AI models such as Stable Diffusion have to streamline app development. One such area where we’ve been able to deploy generative AI is in the creation of app icons. Anyone who has developed an app knows that coming up with an engaging, attractive and memorable app icon design is an often overlooked part of the design process, but also one that is required in order to get your app approved on any app store.

In this article, I will walk show you how you can create an app icon by using Stable Diffusion, an open-source, generative AI image generation model. In particular, I will demonstrate 3 different Low-Rank Adaption (LoRA) models and associated Stable Diffusion checkpoints that you can use to create different kinds of app icons, all of which generate in the proper format and style of an app icon found on Android or iOS.

What is Stable Diffusion?

You may have heard of gen AI design tools such as DALL-E and Midjourney where you simply type your prompt and voila, it spits you an image. Stable Diffusion is another such generative AI image creation model, however unlike Midjourney and DALL-E, Stable Diffusion is open-source and extensible, which has created a booming ecosystem of communities of people taking the basic Stable Diffusion models and adapting them via additional training to perform more specialized design tasks. There are entire online communities devoted to sharing any number of specialized AI models and their outputs, perhaps none bigger than Civitai.com

Understanding LoRA and Checkpoints

Two important concepts to understand in order to gain the most insight from this article is that of checkpoints and LoRA (Low-Rank Adaption) models. A checkpoint is the saved state of a Stable Diffusion model along with all of its parameters and weights. It takes a lot of time and computational power to create a new Stable Diffusion model and a checkpoint is a snapshot in time of a Stable Diffusion model. A LoRA, takes a given Stable Diffusion checkpoint and then fine tunes a small part of it to perform a very specialized task.

For all of your computer scientists out there, let’s describe this in terms of a Git source control system. A checkpoint is akin to a commit in Git. Each git commit represents a snapshot of the entire codebase at a given point in time, that’s what a checkpoint is. A LoRA can be thought of as applying a patch or update to a small portion of the code base without requiring changes to the entire thing.

In this article, I will be using 3 different sets of checkpoints and LoRAs to show how app icons can be created for a set of fictional apps. However, the conceptual approach is the same across 3 example. Each one utilizes a checkpoint, a LoRA trained on top of the checkpoint, a prompt and a set of additional parameters to generate the final image.

Pre-Requisites:

  • You will need to be running a local instance of a Stable Diffusion front end GUI such as Automatic1111. With each example app icon I generate, below them you will find a set of parameters you need to set in your Automatic1111 UI to get similar output, make sure you know how to set these.
  • You should have a machine with a GPU that these models can run on, otherwise it is likely to take a very long time to generate any of these images. Given you will likely need to run multiple different prompts to get an app icon you want, I recommend starting your Automatic1111 web UI with the —xformers command line argument which will greatly improve the speed of generation.
  • Each of the following LoRAs and checkpoints can be found on Civitai.com, you should know how to download these models and install them into your Automatic1111 install.

Approach 1: SD XL Generated App Icons

The “Icons.Redmond – App Icons Lora for SD XL 1.0” is a LoRA that is fine tuned to create app icons sized for iOS and Android apps. Since it uses SD XL 1.0 as its base checkpoint, which is the cutting edge Stable Diffusion model at the time of writing, it is a versatile LoRA that can do both app icons and general purpose image generation. This LoRA is very good at generating images that resemble existing app icon trends and even creates them with rounded borders that match how they look on an iOS app.

With this LoRA, to generate the best app icons you should use the following in your prompt “app icon, ios app icon” or “app icon, android app icon” which will trigger its execution. In addition, all of the examples using this LoRA uses the same set of negative prompts (things you want to explicitly NOT have in the image).

Model Details

CheckpointSD XL
LoRAIcons.Redmond – App Icons Lora for SD XL 1.0
Authorartificialguybr

App Example 1: PixelCat

Say you want to create an mobile game about a hungry cat searching for food that has a pixel art style to it. Naturally, an app icon for this type of game might be best served by a pixelated cat. Using the prompt “<lora:IconsRedmondV2-Icons:1> a cute happy cat, pixel art, app icon, ios app icon”, the Icons.Remond LoRA nails it:

PixelCat - AI Generated App Icon
Prompt<lora:IconsRedmondV2-Icons:1> a cute happy cat, pixel art, app icon, ios app icon
Negative PromptNegative prompt: bad art, ugly, deformed, watermark, duplicated
Steps20
SamplerDPM++ 2M SDE Karras
CFG Scale7
Seed3693377738
Size512×512

App Example 2: Hoppin

In the second example that uses the Icons.Redmond LoRA, we have a social network called “Hoppin”, which I am told is the place to go to share and consume the most viral Rabbit related content on the web. This example demonstrates creating a minimalist app icon with a simple shape in the foreground that many apps use (such as Discord, Monarch, Evernote, etc). In this case, we want to showcase the outline of a rabbit on a clean blue background.

Using the prompt “shape of a rabbit in white, blue background, app icon, ios app icon <lora:IconsRedmondV2-Icons:1>”, the LoRA outputs this:

AI Generated App Icon
Promptshape of a rabbit in white, blue background, app icon, ios app icon <lora:IconsRedmondV2-Icons:1>
Negative Promptbad art, ugly, deformed, watermark, duplicated
Steps20
SamplerDPM++ 2M SDE Karras
CFG Scale7
Seed410673526
Size512×512

In general, I’ve found this LoRA to be deliver the best overall output that matches common aesthetics found in app icons. Also, it is the only one of the models that outputs a PNG with the rounded edges that are common to all app icons.

Approach 2: “Flat” Designed App Icons

The FlatIcon LoRA is not a specialized app icon LoRA, however it is an excellent model for generating minimalist, ‘flat’ logos which make for excellent app icons. You’ll find using this LoRA will generate more skeuomorphic designs that were all the rage pre iOS 4.0, which are now making a comeback. Use this model for any app icon designs that you want to use a minimalist, simple, solid colored “flat” icon.

When using this model, you should prefix all of your prompts with “FlatIcon”. This model works best with simple prompts that describe a singular object like “clock”, “tree”, “wine bottle”. It is not nearly as good as the previous LoRA when given a more complicated prompt.

Model Details

CheckpointDreamShaper
LoRAFlatIcon LoRA
AuthorAndreaDev3D

App Example 3: Gandalf

In this example we have the latest app tearing up the app store charts, “Gandalf” the hottest dating sites for all the single wizards, witches, enchantresses and sorcerers seeking someone to cast spells and break brooms with. In this example, I’ve used the FlatIcon LoRA to create a flat image of a wizard’s hat that would make for an excellent app icon with the following prompt: “FlatIcon of a wizard hat with a blue background <lora:flaticon_v1_2:0.8>

AI Generated App Icon
PromptFlatIcon of a wizard hat with a blue background <lora:flaticon_v1_2:0.8>
Negative Promptbad art, ugly, deformed, watermark, duplicated,FastNegativeEmbedding
Steps20
SamplerDPM++ 2M SDE Karras
CFG Scale7
Seed3452475871
Size512×512

App Example 4: BetterReads

In this example, we have the app BetterReads, a social network for book lovers to share and discover their next favorite book (think of GoodRead, except, you know, better). The prompt for this app icon is simply “FlatIcon bookshelf” and demonstrates how very simple prompts work very well with the FlatIcon LoRA.

AI Generated App Icon
PromptFlatIcon of a bookshelf <lora:flaticon_v1_2:0.8>
Negative Promptbad art, ugly, deformed, watermark, duplicated
Steps20
SamplerDPM++ 2M SDE Karras
CFG Scale7
Seed4250114416
Size512×512

Approach 3: App Icons with Simple, Modern Lines

This approach utilizes another general purpose iconographic LoRA, this one specializing in vector illustrations. This style of illustration has gained popularity recently due to its simplicity and clean look (think Kurzegast or Bluey) feel and they make for really easy to see app icons. To trigger this LoRA, you need to have the words “vector illustration” in the prompt for the LoRA to activate. Much like the last LoRA, the simpler the prompt the better, it tends to struggle with prompts that complex scenes, however it does particularly well generating vector illustrations of cute animals.

Model Details

CheckpointRealistic Vision V6.0 B1
LoRAVector Illustration
Authorvizsumit

App Example 5: Spaghetti Now!

Sometimes you just need some spaghetti. Imagine an app that geolocates the best bowls of spaghetti in your area, it’s called Spaghetti Now! Using the Vector Illustration LoRA I am able to create a pretty neat looking app icon of a bowl of spaghetti that fits the app very well. With the prompt of “<lora:Vector_illustration_V2:1> vector illustration, spaghetti, plate”, the model generates the following app icon:

AI Generated App Icons
Prompt<lora:Vector_illustration_V2:1> vector illustration, spaghetti, plate
Negative Promptugly, bad, blurry, low resolution, low quality, over saturated, b&w
Steps40
SamplerEuler A
CFG Scale7
Seed4254430266
Size512×512

Creating App Icon Assets from Stable Diffusion Generated PNGs

Once I’ve generated a PNG that I want to use as my app icon, the next thing that I need to do is create a set of vector design assets that I can use to generate all the different sizes and resolutions that are needed by Apple’s App Store Connect and Google Play Store. Stable Diffusion just generates a single, rasterized PNG. However, in order to drop this into your app listing or code, you really need a vector file. You can try and futz around with tools like Adobe Illustrator to vectorize a rasterized PNG, however, they really do not work that well. Rather ironically, the easiest and quickest way to get vector assets from your AI generated app icon is to go to Fiverr and hire someone to do it. I’ve done this a number of times and have gotten excellent results for less than $20 USD.

Conclusion

While generative AI is not at the point where it can actually create the design of an app for you, it is good enough to create engaging, appealing app icons for almost any type of with any type of art style. With the use of open source tools like Stable Diffusion coupled with the rich ecosystem of models and checkpoints being shared in communities such as CivitAI, you can harness the jaw dropping power of generative AI to create beautiful app icons.

Creating app icons with generative AI is the latest in a series of tools and processes we’ve adopted at BlueLabel and shared with the world which demonstrate how we are using generative AI at BlueLabel to eliminate many of the most time consuming and repetitive tasks that come with developing and launching any type of digital product or service. We are publishing these tools and processes here on our blog as well as part of our open source suite of AI-powered tools as part of the BlueLabel AI Toolbox.

Bobby Gill
Co-Founder & Chief Architect at BlueLabel | + posts