Edit Background Color for .png files
Moderators: XnTriq, helmut, xnview
Edit Background Color for .png files
For .jpg files, this works:
Edit > Background Color > Choose white as the color that is visible after only a part of a picture is deleted.
But for .png files, selection of background color has no effect. Gray remains the color for the part of the picture that gets deleted for .png files.
Can we set Background Color for .png files?
EDIT: [RESOLVED]:
XnView > Tools > Options > Read/Write > Read TAB > PNG > CHECK: Compose image with alpha (32bits)
Edit > Background Color > Choose white as the color that is visible after only a part of a picture is deleted.
But for .png files, selection of background color has no effect. Gray remains the color for the part of the picture that gets deleted for .png files.
Can we set Background Color for .png files?
EDIT: [RESOLVED]:
XnView > Tools > Options > Read/Write > Read TAB > PNG > CHECK: Compose image with alpha (32bits)
Last edited by c627627 on Fri Jan 13, 2017 9:27 pm, edited 2 times in total.
Re: Edit Background Color for .png files
No problem for me with a 24-bit PNG, are you possibly using 32-bits files?c627627 wrote:For .jpg files, this works:
Edit > Background Color > Choose white as the color that is visible after only a part of a picture is deleted.
But for .png files, selection of background color has no effect. Gray remains the color for the part of the picture that gets deleted for .png files.
Can we set Background Color for .png files?
Re: Edit Background Color for .png files
Yes. My screenshot software saves 32-Bit .png files.
Does that mean it is not possible to set the background color for 32-Bit .png files?
Does that mean it is not possible to set the background color for 32-Bit .png files?
Re: Edit Background Color for .png files
You can't create 24-bit images?c627627 wrote:Yes. My screenshot software saves 32-Bit .png files.
Does that mean it is not possible to set the background color for 32-Bit .png files?
Regarding 32-bit PNGs, that's a question for XnTriq...
Edit:
If you don't have transparency, couldn't you convert the images to 24-bit and then make the deletes you need?
Re: Edit Background Color for .png files
Screenshot software set to default takes png screenshots...
They appear to be 32-Bit.
We need to be able to very quickly simply white out a small part of that standard screen shot.
Or else I am forced to open the screenshot in Photoshop and do it that way.
What would it take to make the default background color at least be white for all files, including 32-bit .png, can that be done?
Would you not agree that white is the most natural background color, color of paper. Gray is not.
Luckily we can set white for jpg (default color for jpg is not white, by the way, I have to go in with each XnView installation and change it to white, but at least we can do that for .jpg files).
They appear to be 32-Bit.
We need to be able to very quickly simply white out a small part of that standard screen shot.
Or else I am forced to open the screenshot in Photoshop and do it that way.
What would it take to make the default background color at least be white for all files, including 32-bit .png, can that be done?
Would you not agree that white is the most natural background color, color of paper. Gray is not.
Luckily we can set white for jpg (default color for jpg is not white, by the way, I have to go in with each XnView installation and change it to white, but at least we can do that for .jpg files).
Re: Edit Background Color for .png files
Please make sure to set Edit » Background colour... (in view mode) to R255/G255/B255 before “flattening” the PNG screenshots with Image » True Colour to get rid of the alpha channel.
BTW: I find the checkerboard background very helpful for identifying transparency in images.
BTW: I find the checkerboard background very helpful for identifying transparency in images.
Re: Edit Background Color for .png files
All right.
The additional step of
Image > True Color accomplishes this and is the answer to this thread's question.
Thank you.
For informational purposes, what exactly happens to the original file when you Image > True Color it?
The additional step of
Image > True Color accomplishes this and is the answer to this thread's question.
Thank you.
For informational purposes, what exactly happens to the original file when you Image > True Color it?
Re: Edit Background Color for .png files
The color depth is decreased fom 32-bit (RGBA) to 24-bit (RGB). Transparency is lost due to the alpha channel (the A in RGBA) being discarded.c627627 wrote:For informational purposes, what exactly happens to the original file when you Image > True Color it?
Re: Edit Background Color for .png files
What would it take for XnView to handle 32-Bit and is it likely it will have this feature added at any point?
In other words, is what is involved so complex, that XnView is unlikely to really ever be able to handle it?
In other words, is what is involved so complex, that XnView is unlikely to really ever be able to handle it?
Re: Edit Background Color for .png files
I'm not aware of any issues in that regard.c627627 wrote:What would it take for XnView to handle 32-Bit and is it likely it will have this feature added at any point?
In other words, is what is involved so complex, that XnView is unlikely to really ever be able to handle it?
- If you select part of a 32-bit image and hit delete (= Edit » Clear), the area turns transparent and the viewer's background color (Tools » Options... » View » View » Background colour) becomes visible in that spot.
- If you select part of a 24-bit image and hit delete, the area is filled with the color specified in Edit » Background colour....
Re: Edit Background Color for .png files
Here's are my conclusions on this issue: People may not really understand what it means to Image > Remove Alpha Channel and they might they think by doing that they "lose" the quality of the original image... But the reality is, 10/10 times, it's editing an image that is not important.
So...would it be reasonable to have some sort of a non-default setting, where a user can switch on a setting that would trigger the removal of that Alpha Channel automatically when you select part of a 32-Bit .png and press DELETE... what do you think?
The big picture being, what all this is about, is super-quick whiting-out of just a part of a 32-Bit screen shot .png file.
So...would it be reasonable to have some sort of a non-default setting, where a user can switch on a setting that would trigger the removal of that Alpha Channel automatically when you select part of a 32-Bit .png and press DELETE... what do you think?
The big picture being, what all this is about, is super-quick whiting-out of just a part of a 32-Bit screen shot .png file.
Re: Edit Background Color for .png files
Usually I would've recommended activating Ignore alpha channel (Tools » Options... » General » Operations), but things can get very confusing in some cases for people who aren't used to working with 32-bit images. Case in point: 1.png & 2.pngc627627 wrote:So...would it be reasonable to have some sort of a non-default setting, where a user can switch on a setting that would trigger the removal of that Alpha Channel automatically when you select part of a 32-Bit .png and press DELETE... what do you think?
UPDATE: Forget about Ignore alpha channel. Please activate » Compose image with alpha (32bits) in Tools » Options... » Read/Write » Read » PNG.
Re: Edit Background Color for .png files
Perfect, perfect.
XnView > Tools > Options > Read/Write > Read TAB > PNG > CHECK: Compose image with alpha (32bits)
Thank you!
XnView > Tools > Options > Read/Write > Read TAB > PNG > CHECK: Compose image with alpha (32bits)
Thank you!