Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: White Background Converted to Light Grey

  1. #1
    IV Newbie
    Join Date
    Aug 2018
    Posts
    5
    Version
    IrfanView 4.51
    OS
    64-bit Win 10
    CPU Cores
    4

    Default White Background Converted to Light Grey

    Having a very similar color issue. I'm pulling in listings for pictures of black items against a 255/255/255 white background for Amazon listings, using a mask on the item and exporting as PNG. When I pull into Irfanview to convert to a JPG and do clean up, it's converting the background to a light grey... I don't understand why it's doing this.

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

    Default

    I have just done a test by creating an image which is half white and half black in Irfanview which I then saved as a 24-bit (full color) PNG image. I then re-opened it and checked the colors being displayed by clicking and holding down the mouse left button on the 2 halves (image 1 below). The colors shown in brackets on the Caption bar were still (000000) for black and (111111) for white (or 0/0/0 and 255/255/255 on RGB scale).

    I then saved as a 24-bit JPG and re-opened that (image 2 below). The colors now were (010101) for black but still (111111) for white (1/1/1 and 255/255/255). So not what I assume you are seeing.

    I had unchecked Color management in the Viewing tab of Properties/Options of course. I did try unchecking the gamma correction in that tab too but that made no difference. Are you perhaps doing something I am not, like decreasing color depth?

    Image 1 starts here>Attachment 5342<.......and image 2 starts here >Attachment 5343<

  3. #3
    IV Newbie
    Join Date
    Aug 2018
    Posts
    5
    Version
    IrfanView 4.51
    OS
    64-bit Win 10
    CPU Cores
    4

    Default

    Here's the example files; I had to trim the PNG down to attach it. Process is
    >>Open PNG in Irfanview>>Save As JPG

    And I get the resulting JPG which has grey around the edges.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	image855-JPG.jpg 
Views:	59 
Size:	515.4 KB 
ID:	5344   Click image for larger version. 

Name:	image855-PNG2.jpg 
Views:	65 
Size:	90.5 KB 
ID:	5345  

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

    Default

    Both attached images are JPG.

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

    Default

    If I fill the background of the JPG with pure white and save it as PNG, then open that and save it as JPG, the background is still white.

    PNG Version

    Click image for larger version. 

Name:	image855.png 
Views:	74 
Size:	518.6 KB 
ID:	5346
    JPG Version
    Click image for larger version. 

Name:	image855.jpg 
Views:	73 
Size:	73.4 KB 
ID:	5347

  6. #6
    IV Newbie
    Join Date
    Aug 2018
    Posts
    5
    Version
    IrfanView 4.51
    OS
    64-bit Win 10
    CPU Cores
    4

    Default

    Quote Originally Posted by Bhikkhu Pesala View Post
    Both attached images are JPG.
    Weird. Source file was PNG. Just tried again; the forum is converting it. Notable the Forum managed to do the conversion without screwing up the background...
    Last edited by noiseguy; 01.09.2018 at 09:12 PM.

  7. #7
    IV Newbie
    Join Date
    Aug 2018
    Posts
    5
    Version
    IrfanView 4.51
    OS
    64-bit Win 10
    CPU Cores
    4

    Default

    Quote Originally Posted by Bhikkhu Pesala View Post
    If I fill the background of the JPG with pure white and save it as PNG, then open that and save it as JPG, the background is still white.
    I just did the same test and got same result. Here's a URL to the original files; the PNG is 4.5mb and I can't upload it.

    http://hondaspree.net/image855-PNG.png
    http://hondaspree.net/image855-JPG.jpg

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

    Default

    The linked PNG does not have a white background. It is a 32-bit PNG with a transparent background. The background will be grey if you use the default window colour of black, but if you change it to white you will get a white background if you save it as JPG.

    See Properties/Settings, Viewing, Main Window Colour.

    Click image for larger version. 

Name:	image855-PNG.jpg 
Views:	75 
Size:	443.7 KB 
ID:	5349

  9. #9
    IV Newbie
    Join Date
    Aug 2018
    Posts
    5
    Version
    IrfanView 4.51
    OS
    64-bit Win 10
    CPU Cores
    4

    Default

    ... I'm not getting the PNG having a transparent background. I did the above change and this is the result: the picture with a light grey background surrounded by white.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Screenshot.JPG 
Views:	56 
Size:	93.0 KB 
ID:	5360  

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

    Default

    This is taking too much of my free time.

    As I said, the original 32-bit PNG has a transparent background. The main window colour set in IrfanView will affect the background when it is opened. A black window colour gives a grey background, a white window colour gives a white background, and a red window colour gives a pink background. The alpha transparency must be about 50% because it is not completely transparent, or the backgrounds would be black, white, and red respectively.

    Please use a proper photo-editor for editing 32-bit images. The IrfanView window only supports 24-bit.

Thread Information

Users Browsing this Thread

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

Posting Permissions

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