Transparent PNG Icons Can Show White Edges on Dark Backgrounds
Transparent icons sometimes display a white rim when placed on a dark toolbar, a problem illustrated at 24 × 24 px and zoomed in. The author exported a search icon from IconVectors 2.30 and created a test copy with Pillow by mixing white into the RGB values of semi-transparent edge pixels. All 576 alpha values remained unchanged, yet 107 pixels appeared lighter on the same dark background. An edge pixel kept an alpha of 130 in both versions, but its RGB values shifted from (56, 119, 223) to (154, 186, 239). The piece advises checking the RGB and alpha values of edge pixels and previewing the original SVG on a dark background before re-exporting.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in