Exclusion Script
#1
Posted 20 May 2006 - 09:14 PM
#2
Posted 20 May 2006 - 09:45 PM
Bottom layer: Add Layer Mask (from grayscale copy of layer)
Bottom layer: Mask to Selection
Top layer: Add Layer Mask (from selection)
Bottom layer: Delete Layer Mask
Of course, the mask would need regenerating if the bottom layer changed (in this sense it does not perfectly emulate an "Exclusion Layer Mode").
#4
Posted 21 May 2006 - 03:22 AM
Quote
ALL layer modes in the GIMP (except dissolve*) specify how that layer combines with the image underneath it (this image is called the "projection"). This means that you must have more than one layer for the layer mode to be meaningful. I do not understand what Photoshop is doing to handle a single layer set to "Extraction Mode" (perhaps you can provide some samples and describe what is happening). I am assuming that "Extraction Mode" means to replace the parts of the upper layer which are different than the darker parts of the bottom layer with the bottom layer (this is the definition I found on the Internet, perhaps it is different than what Photoshop does).
In my description, "Top layer" refers to the layer which you want to be in "exclusion mode". I have simplified things in this description by assuming that there is only one layer underneath it. In order to accurately generate this effect, you would have to create a single layer that merges the ones underneath it.
This would be rather tedious and so I have written a script-fu which automatically does this. The script can be downloaded from http://flashingtwelv...lusion-mask.scm and run from the "Script-fu->Layer Effects->Exclusion Mask" menu. I would appreciate it very much if you would try this script and post some comparisons to your Photoshop images.
* "Dissolve Mode" is special amongst the layer modes because it does not use any information from the layers underneath it, it uses only its own alpha channel.
#5
Posted 21 May 2006 - 03:43 AM
#6
Posted 21 May 2006 - 07:25 AM
The problem concerned the UNDOing of the script: when the script runs, the first thing it does is to save the current selection so that it can be restored later. The removal of this temporary selection channel was erroneously left as an operation outside the UNDO history (requiring two UNDOs to undo the effect). The new version correctly deletes this temporary channel (so a single UNDO properly restores the image to its original state).
#7
Posted 21 May 2006 - 10:19 PM
Definition of Exclusion Mode for PS: Exclusion uses the darkness of the lower layer to mask the difference between upper and lower layers.
As far as I can tell, your script achieves as close to the desired result as anything else I've seen for the GIMP. I simply run your script on a dark blue (top) layer (with my base image as the bottom layer), and it seems to work. If you Google "exclusion mode tutorial", you should be able to find plenty of examples of the end result.
Thank you again for taking the time to reply in such detail. Your script works wonderfully.
#8
Posted 22 May 2006 - 09:34 AM
Quote
I understand now. But the layer doesn't have to be filled with a solid color, it is just commonly used this way.
Quote
Yep. That is pretty much what my script does: creates a mask out of the bottom "layer" and applies it to the top layer and changes the Mode of the top layer to Difference. I am not sure why my script produces a slightly different result than PS but I think that there may be a slight difference between the different Differences. :h:
#9
Posted 23 May 2006 - 09:54 PM
BTW is not possible add to gimp new layer mode?
#10
Posted 02 September 2006 - 06:52 PM
Before I use the script:

After I use the script:

Please help me...
#12
Posted 02 September 2006 - 07:30 PM
Quote
While the script doesn't care if the top layer is filled with blue, it generally expects that the bottom layer holds the image to be modified. If your were to place your transparent layer above the image of the girl and then run the script (with the top layer active), the mask would be properly generated (although for a transparent layer there would be no change, you will want to fill the top layer with HTML=#052FA5).
#14
Posted 02 September 2006 - 08:28 PM

PaintShop Pro:

GIMP:

Okay, the PSP one is lighter and the GIMP one is darker and has yellow and stuff. In the PSP one her face is a light and smooth, which I like. In the gimp one her face is too orange and yellow, not smooth... I like the lighter one, it looks more "vintage". Is there anyway to make it look more like the lighter PSP one???? I tried putting a white layer overtop and adjsting the Opacity, but that just makes it faded...
#15
Posted 03 September 2006 - 06:06 AM
I believe you may have omitted a couple of the steps in the tutorial which "set up" the image (the sharpening, duplicating, and setting the mode to Screen and the opacity). When I performed those steps I still end up with very noticeable differences (but not so extreme as your example). I will look into this some more later in the week; I have a suspicion that Paint Shop Pro's "exclusion blend mode" includes a certain amount of "inclusion masking" but I am not sure (I have compared my output to that of Pegtop Delphi and they are identical; PSP is apparently doing something different). If you encounter any other tutorials for PSP's blend modes, feel free to send me a PM.
#16
Posted 04 September 2006 - 08:32 PM

:h: :l:
#17
Posted 22 September 2006 - 12:22 PM
#18
Posted 22 September 2006 - 01:28 PM
In my opinion, the script is somewhat worthless. All it does is perform the five basic steps described in the second post in this thread. If the time is taken to understand what is taking place in those steps, one will learn much more than just inputting values taken from a web tutorial.
The idea of masking off portions of an upper layer that somehow affects the image underneath is fundamental to image manipulation. Simple highlights and shadows adjustments, removing noise, and exclusive "colorization" all share the principle that the amount of the effect should be based on the content of the lower layer. Photoshop (and apparently PaintShop Pro) seem to teach their users that image manipulation consists of inputting numbers and moving sliders in a dialog box, I prefer to think that image manipulation consists of manipulating images. :l:
#19
Posted 22 September 2006 - 02:33 PM
#20
Posted 22 September 2006 - 03:12 PM

Help













