Hello everyone, I"m having a problem with the icon for an app that I’m building… The icon is a dark, almost black square image but when I add it to the app and then install it on my phone you can see a little bit of white on both the right side and the bottom. Do you have any ideas on how to fix this?
Originally the image was around 800px x 800px and I had the problem so I tried resizing it to 48px x 48px but that didn’t help.
Thank you for your suggestions everyone, I appreciate it!
Unfortunately, I still can’t get it to look right. I tried a few different icon sizes - 192px and 108px but that didn’t fix anything. I also tried a couple different launchers - Nova and Evie but that didn’t make a difference either so I’m at a loss…
Yes, I think it’s an issue with the device’s DPI. All of the DPI values are powers of two except HDPI and XXHDPI, which are 1.5 and 3, respectively. I think your 1-pixel of white is due to an off-by-one error resulting from a division by an odd number (if it were an even number it would scale accordingly and you wouldn’t get the 1 pixel of white).
I think this is something that we need to correct on our end. My original hypothesis was that using a 576x576 icon would work best as its the least common multiple of all the possible icon sizes (for Android), but because of how the integer math works it ends up still rounding down by a pixel. Using your phone’s specifications the plan is to try and reproduce the issue with the emulator and see if we can fix it.