138

I have some PNG images which consist of a black shape and a transparent background. Unfortunately, IrfanView shows transparent background as black color, so I see just black on black. I've found in Irfan settings that I can change the window's background color, but it changes only around the image, the transparent color is still black.

Is there any way to change the color displayed as transparent, or, optimally, use white-grey squares like Photoshop?

jdhao
  • 24,001
  • 18
  • 134
  • 273
amik
  • 5,613
  • 3
  • 37
  • 62
  • 8
    To note: `Options` > `Properties` > `Viewing` > `Main window color`. –  Jun 07 '17 at 18:30

3 Answers3

162

You were on the right track. IrfanView sets the background for transparency the same as the viewing color around the image.

You just need to re-open the image with IrfanView after changing the view color to white.

To change the viewing color in Irfanview go to:

Options > Properties/Settings > Viewing > Main window color
elomage
  • 4,334
  • 2
  • 27
  • 23
Dmytro Vyprichenko
  • 4,654
  • 2
  • 23
  • 15
  • 70
    How to change the viewing color: Options > Properties/Settings > Viewing > Main window color – Juuso Ohtonen Jul 07 '13 at 07:12
  • 14
    Does not work for me. Paste transparent image into white window -> window turns black. – Tyler Durden Jul 06 '15 at 21:05
  • 5
    Make sure 'Show PNG/TIF/TGA/DDS alpha/transparent color' is ticked on the same settings section. – Sprintstar Sep 28 '15 at 10:18
  • 2
    It works for saved files but does not work when a picture is copy & pasted from the clipboard. For example, picture shown in a browser -> right click to copy image... -> open irfan -> paste. That results in black background. But I'm not sure whether it's irfan issue or the clipboard stores data w/o transparency information. – Jacek Jul 08 '16 at 11:33
  • 16
    @tom The key step is **re-open the image ... after changing the view color to white**. Seems like a bug in irfanview that you have to re-open it, but anyway this works. – Fuhrmanator Apr 18 '17 at 14:38
  • ha, ha, ha, great, thanks! :) I wish IrfanView could automatically do that. –  May 21 '17 at 16:50
  • I had to first open the PNG with Paint. Or maybe the install was still getting registered in the background in Windows 10 Pro. – Cees Timmerman Jun 18 '18 at 17:06
  • 2
    Wow. I consider the reopening thing quite a bug as well, very annoying. – Maarten Bodewes Apr 01 '19 at 12:14
  • 2
    This still doesn't work, if the image is all white; with "Show transparent color" enabled, and the main window color set to white, now all you see is a white square. Or am i missing something? – atreyu Dec 18 '19 at 16:35
  • 1
    My Irfanview is configured to open in Full Screen Mode: the background is black in any case and the transparent colour black too; if I exit full screen (ESC) it remains black. If I remove the option to start in Full Screen Mode, everything is fine. Sort of a bug, I guess. – Paolo Sep 24 '22 at 13:23
  • 1
    Years later Google search found your directions on how to correct this annoying problem! Thank you!! – Ken Apr 12 '23 at 14:01
6

If you are using the batch conversion, in the window click "options" in the "Batch conversion settings-output format" and tick the two boxes "save transparent color" (one under "PNG" and the other under "ICO").

Annalisa
  • 67
  • 1
  • 2
  • Based on my tests, this actually seems to be the easiest and most effective solution to saved icons missing transparency. Just make sure you click "options" like @Annalisa says, and not "Advanced" – Eric Hepperle - CodeSlayer2010 Jun 05 '16 at 21:16
  • 3
    I don't think this answer the question. The question is about displaying transparency in IrfanView, not about saving transparent images. – amik Apr 21 '17 at 20:44
0

Advanced > Canvas Size 'Settings' > canvas color: 'OK'

I've read all of these and eventually figured out my resolution.

The images have worked for me on this occasion and saved me several hours.