Jump to content
You must now use your email address to sign in [click for more info] ×

"Erase White Paper" to a duplicate layer causes overall darkening


Recommended Posts

Hi,

I was using Affinity Photo, experimenting with filters to try to improve the appearance of a rather overexposed image, and quite by accident, I discovered that by duplicating the original photo layer, and applying the "Erase White Paper" filter to the duplicate layer, the result is a generally darker appearance, which is exactly what I was looking for.  Since the documentation for "Erase White Paper" states that all it does is "apply transparency to white areas of an image", I wasn't expecting any visible change to happen at all, since I would expect that the transparency that was just created in the top layer would just allow the white in the underlying area to show through.  Both layers are set to the "Normal" blend mode, and both have an Opacity value of 100%.  Could someone fill me in on what's actually happening here?

 

In the attached file, there are two layers, "Copy of Background" (which had the "Erase White Paper" filter applied), and "Background", which is the unaltered original image.  If you toggle the visibility of the "Copy of Background" layer, you can see that the original image is significantly brighter than when the visibility of both layers has been turned on.

Thanks,

Ken

 

 

EraseWhitePaperTest.afphoto

Link to comment
Share on other sites

Quite simply "Erase White Paper" removes all the white from an image, not just areas of solid white. (It's really intended to remove the white background from a purely back and white image.) So solid white becomes completely transparent, black stays completely opaque, and all other colours/tones in-between will become semi-transparent in varying degrees.

In your example you are seeing the darker areas on top of (effectively added to) the lower layer. If you hide the lower layer and replace it with a flat coloured layer you can see the varying transparency more easily. A more controllable way to darken an image, in a similar way, is to duplicate the layer, give it a multiply blend mode, then adjust the opacity of the top layer.

Acer XC-895 : Core i5-10400 Hexa-core 2.90 GHz :  32GB RAM : Intel UHD Graphics 630 : Windows 10 Home
Affinity Publisher 2 : Affinity Photo 2 : Affinity Designer 2 : (latest release versions) on desktop and iPad

Link to comment
Share on other sites

2 hours ago, PaulEC said:

If you hide the lower layer and replace it with a flat coloured layer you can see the varying transparency more easily. A more controllable way to darken an image,

If I hide the lower layer and replace it with a white layer I see the initial look (= the look of the hidden layer). – What makes transparency placed on top of non-transparency darken the latter? Why does the same (semi-)transparency not darken a white layer in the same way it darkens the original image?

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Link to comment
Share on other sites

37 minutes ago, thomaso said:

If I hide the lower layer and replace it with a white layer I see the initial look (= the look of the hidden layer). – What makes transparency placed on top of non-transparency darken the latter? Why does the same (semi-)transparency not darken a white layer in the same way it darkens the original image?

If you add a white layer all you are doing is replacing the white that was removed. In the OP's example the upper layer (which has had the white element removed) is now mostly semi-transparent, hence you are "looking through" a semi-transparent layer at the original layer, which means that the darker areas now appear darker because you are looking at the original layer plus the semi-transparent layer above. (Areas that were already quite dark are hardly affected.)

"Why does the same (semi-)transparency not darken a white layer in the same way it darkens the original image?" – Because it is affecting a white layer (so it looks the same). If it is on top of the original image the semi-transparent areas are being added to the ones below, effectively darkening already darker areas, more than the lighter areas.

If you look at at the uncropped image, with a red, rather than white, background, the varying transparency is more obvious.

RedBG.afphoto

Acer XC-895 : Core i5-10400 Hexa-core 2.90 GHz :  32GB RAM : Intel UHD Graphics 630 : Windows 10 Home
Affinity Publisher 2 : Affinity Photo 2 : Affinity Designer 2 : (latest release versions) on desktop and iPad

Link to comment
Share on other sites

16 minutes ago, PaulEC said:

which means that the darker areas now appear darker because you are looking at the original layer plus the semi-transparent layer above.

Do you mean the brighter areas get darkened? In the OP's file the initially dark areas are not affected but the bright areas in the lower layer get dimmed if the layer above shows its transparency at these spots.

Ah, now I understand: Only the semi-transparent areas darken the image below – while pure white areas aren't affected because the upper image is 100% transparent at these spots. Or: where the original image does not contain pure white areas the "Erase White Paper" causes semi-transparency, which then darkens the image below.

 


 

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Link to comment
Share on other sites

2 hours ago, thomaso said:

the darker areas now appear darker

Sorry, not very clear, I meant that the dark areas will become darker, (I suppose really I should have said the midtones will become darker!)

Acer XC-895 : Core i5-10400 Hexa-core 2.90 GHz :  32GB RAM : Intel UHD Graphics 630 : Windows 10 Home
Affinity Publisher 2 : Affinity Photo 2 : Affinity Designer 2 : (latest release versions) on desktop and iPad

Link to comment
Share on other sites

2 hours ago, thomaso said:

Ah, now I understand: Only the semi-transparent areas darken the image below – while pure white areas aren't affected because the upper image is 100% transparent at these spots. Or: where the original image does not contain pure white areas the "Erase White Paper" causes semi-transparency, which then darkens the image below.

👍

Acer XC-895 : Core i5-10400 Hexa-core 2.90 GHz :  32GB RAM : Intel UHD Graphics 630 : Windows 10 Home
Affinity Publisher 2 : Affinity Photo 2 : Affinity Designer 2 : (latest release versions) on desktop and iPad

Link to comment
Share on other sites

12 hours ago, Ken Hjulstrom said:

Since the documentation for "Erase White Paper" states that all it does is "apply transparency to white areas of an image"

If "Erase White Paper" only affected transparency there shouldnt be any change in the RGB values.
This is clearly not what happens.

GIMP has a function called "Color to Alpha" that lets you make a given color transparent.
What this function does is answer a simple question. What color, with a certain transparency, do I have to mix with white to get the original color?
To answer this question, you get a color with different transparency and RGB values compared to the original. Therefore, slight changes in color are to be expected.

I suspect that "Erase White Paper" works very similarly to GIMPs "Color to alpha".
("Color to alpha" works with any color. Not just white)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.