Packaging
Optimizing Your App Icon
There are several things you can do to shrink down the size of your icon:
- save without thumbnail image (in gimp it can be done in the export dialog)
- shrink the image resolution (
256pxare enough, in some cases128pxor even lower like64pxcan sufice) - change your PNG colors from
RGBtoIndexed(in gimpImage->Mode->Indexed, see https://docs.gimp.org/en/gimp-image-convert-indexed.html)
For
pngyou can also use theoxipngtool (https://github.com/shssoichiro/oxipng), which automagically optimizes your icon's file size without quality loss:oxipng icon.png -s -o maxIf you have png files in your project, you should also do this them to safe even more bytes.
Noteworthy parameters:
--pretendonly calculates gains-Zeven more compression, but takes longer- for more info see
oxipng --help# Troubleshooting