Results 1 to 9 of 9

Thread: Changing Background color

  1. #1
    IV Newbie
    Join Date
    Dec 2007
    Location
    NJ, USA
    Posts
    3
    Version
    IrfanView 4.00
    OS
    Win XP Home SP2

    Default Changing Background color

    I'm not experienced using forums so please excuse any faux pas.

    I've looked everywhere in the program, searched the forum and read all FAQ's but I don't find an answer.

    I've just upgraded to 4.1 but I've used Irfanview for years. In the versions before 4.0, I could easily change the background color for a psd or psp file that I was saving as a jpg. For the entire time I've had 4.0, I have periodically rechecked for something I missed but I still can't get the background to save as anything but black! I checked with 4.1 .... same problem.

    What am I missing??

    I hope I've been clear. Hoping you can help.
    yeahbut

  2. #2
    Administrator
    Join Date
    May 2007
    Location
    Near Munich, Germany
    Posts
    894
    Version
    IrfanView 4.33
    OS
    64-bit Linux Distribution
    CPU Cores
    8

    Default

    Hi,

    welcome to the forum

    If you want to change the background for the IrfanView window (you can only change that kind of background !) you have to do that:

    1. Open IrfanView

    2. Press key "p" (For the settings dialog)

    3. Click on the tab "Viewing"

    4. Then you can change the main window color (Click on the "Choose" button)

    steve

  3. #3
    IV Newbie
    Join Date
    Dec 2007
    Location
    NJ, USA
    Posts
    3
    Version
    IrfanView 4.00
    OS
    Win XP Home SP2

    Default

    Hi steve,
    I just wrote a tome and the system ate it.

    Okay, how bout this...can I change the default color (black) that Irfanview uses for "save as". NOT the viewing window. And I'm not trying to edit with Irfanview, for that, I use Photoshop or Paintshop...I just want to be able to save a psp or psd file as a jpg with the original background color NOT black! Imagine your avatar on black, or worse...my black angel on black. If you're saying I can only effect the viewing window color...RATZ!! That really limits my use of Irfanview for conversion.

    In any event, thanks very much for your time.
    yeahbut

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

    Default

    If the viewing colour is black when you open an image with a transparent background the background will be black. If you change the viewing colour to white, it will be white. So you can open a transparent image and save it as a JPG (no transparency permitted) with any colour background you want. Of course, you could save as PNG and retain the transparency.

    If the original is not transparent, then save as PNG first, with transparency, then change the viewing colour, reopen (file menu, reopen), and save a JPG with your chosen colour.

    Otherwise, open the IrfanPaint plugin (F12), and use the floodfill tool. Note that this has no tolerance. The background must be a uniform colour for it to flood fill. JPG images may look like they have a uniform background colour, but they rarely do.

  5. #5
    IV Newbie
    Join Date
    Dec 2007
    Location
    NJ, USA
    Posts
    3
    Version
    IrfanView 4.00
    OS
    Win XP Home SP2

    Default That's It!!!

    Wow! Beautiful. Honestly, Bhikkhu, I don't know how you understood what I was trying do. But you did!! Thank you ... it will save me hours of work AND allow me to stay in Irfanview without resorting to other cumbersome programs.

    Hugs (really)
    yeahbut

  6. #6
    IV Newbie
    Join Date
    Aug 2008
    Posts
    4
    Version
    IrfanView 4.20
    OS
    Win XP Pro SP3
    CPU Cores
    1

    Default

    I'd like to bring this up in case anyone else is looking for this solution, as I was. This thread did resolve my issue but note the following: you have to re-open the image in IrfanView before the changed viewing color correctly goes into effect. (at least on this version)

    I was recently dealing with an image with a transparent background, and as stated by Bhikkhu Pesala, its background was coming up black. Changing the viewing color would immediately change only the surrounding background, not the background of the image itself. However, once the same image was opened in another instance of IrfanView, the new background color was implemented everywhere. Until I discovered this, I spent a few minutes thinking something was wrong.

  7. #7
    IV Newbie
    Join Date
    Aug 2014
    Location
    Lynton,Devon England
    Posts
    1
    Version
    IrfanView 4.38
    OS
    Win XP Pro SP3

    Default

    I have done and tried all the above but although most png files now display correctly a few insist on displaying their transparency as black. Is this a particular type of png? It (or they) do not appear to be anything special.

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

    Default

    Attach one to the forum is the quickest way to find out what the issue is.

  9. #9
    Professional User Mij's Avatar
    Join Date
    Mar 2007
    Location
    Camberley, Surrey, UK
    Posts
    2,764
    Version
    IrfanView 4.51
    OS
    32-bit Win 10
    CPU Cores
    3

    Default

    I think you are probably being confused by the two options for displaying PNG images in Irfanview.

    The first image below is an Irfanview screenshot of an original image that shows the letters PNG in red on a black background. Irfanview has been set with a pale grey background colour that surrounds the image.
    I saved the image as a PNG with black selected as the transparent color. That is the 2nd image below. The background colour of the forum is white, so you see the letters on white.
    The 3rd image is an Irfanview screen shot with the first option in the Viewing tab of Properties/Settings Checked. The black area from the original is transparent so the grey Irfanview background is seen where that area was.
    The 4th image is a screen shot with the option Unchecked. The black area is now visible again, just as it was in the original image.
    Click image for larger version. 

Name:	Original.png 
Views:	656 
Size:	40.0 KB 
ID:	3865 Click image for larger version. 

Name:	PNG transparent.png 
Views:	606 
Size:	2.5 KB 
ID:	3866 Click image for larger version. 

Name:	Checked .png 
Views:	1629 
Size:	99.3 KB 
ID:	3867 Click image for larger version. 

Name:	Unchecked.png 
Views:	987 
Size:	100.5 KB 
ID:	3868

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
  •