Windows Ico shows pink where transparency expected

Ask for help and post your question on how to use XnView Classic.

Moderators: XnTriq, xnview

Post Reply
iconantsy

Windows Ico shows pink where transparency expected

Post by iconantsy » Sun Sep 17, 2006 6:24 am

Hello,

I tried converting a gif (with transparent background)
to a .ico windows icon file. The transparency seems
to show up fine, because the background is indeed
transparent when I set explorer's window background
to anything other than white... but when the background
is white, it shows pink where it should be transparent...

Does anybody know why? This doesn't happen
when I create the icon using visual studio... this
is a 256 color 48x48 ico file

Thanks alot

User avatar
XnTriq
Moderator & Librarian
Posts: 5463
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Windows Ico shows pink where transparency expected

Post by XnTriq » Sun Sep 17, 2006 8:40 am

When converting a GIF or a palette-based PNG image to the Windows ICO, CUR and ANI formats, one has to ensure that the palette contains 100% black (R0/G0/B0) and 100% white (R255/G255/B255), even if black & white aren't used in the actual image.

Post Reply