electronelectron-builder

Poor icon graphics on windows excecutable app


Why my electron app has poor icon graphics

I recently create and electron app however when i package it with electron rebuild the icon graphics of the installer and installed app are really poor on windows.

The icon am using is 512x512 and i don't have the same problem when i package it to Linux executable .deb file.

enter image description here

As you can see the icon is not perfect.

Is there a way to improve the icon quality?


Solution

  • It's because your 512x512 icon was scaled down to fit with windows desktop's icons's size.

    I would suggest you to create an ico file from your icon, this file contains following multiple sizes: 16, 24, 32, 48, 64, 128, 256.

    After that, put your icon under build directory with name as icon.ico