Results 1 to 4 of 4

Thread: Saving a transparent image to ICO alters pale colors

  1. #1
    IV Newbie
    Join Date
    May 2019
    Posts
    2
    OS
    Win 7 Professional SP1

    Default Saving a transparent image to ICO alters pale colors

    When I save an image that uses transparency and pale colors, to the ICO, IrfanView (4.52 and 4.53) mixes these pale colors together with the main window color (used to show transparent parts). So the only way to get the same image as the PNG source, is to set pure white background color.

    Source PNG: Name:  source.png
Views: 74
Size:  703 Bytes

    Resulting ICOs, in accordance with the window background colors: ico.7z

    If I edit and save transparent PNG files, colors are not mixed, and the result looks as a source, regardless of window background color.

    Is this a bug, or a side effect of ICO images processing?

  2. #2
    Moderator Enterprise User Bhikkhu Pesala's Avatar
    Join Date
    May 2007
    Location
    East London
    Posts
    6,072
    OS
    64-bit Win 10
    CPU Cores
    1

    Default

    The source image has 32-bits per pixel. The edited images only have 24-bits per pixel.

    This is a limitation of IrfanView. I suggest using an icon editor for this task or a full Photo-editor.

  3. #3
    IV Newbie
    Join Date
    May 2019
    Posts
    2
    OS
    Win 7 Professional SP1

    Default

    Hmmm. I read about 24-bit limitation in IrfanView, but the source image was edited and saved in IrfanView (to PNG) several times, and it still has 32 bits per pixel. Is this limitation related to ICO files only?

    And why the limitation can be bypassed by setting window background color to white?

  4. #4
    Moderator Enterprise User Bhikkhu Pesala's Avatar
    Join Date
    May 2007
    Location
    East London
    Posts
    6,072
    OS
    64-bit Win 10
    CPU Cores
    1

    Default

    It seems to be OK if I save without Alpha Transparency, but the result is then 24-bits

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •