What kind of Mac(R) are you? Bring home this FREE $500 Apple(R) gift card, details apply.
Get an Asus(R) bamboo laptop, FREE (with completion of program requirements).

GimpTalk Announcement :
Try your digital-art skills against your fellow gimpers in GIMPtalk's Biweekly Art competition !


Board index » GIMP Art Galleries and Resources » GIMP Plugins, Filters, and Scripts Web Development Services . Convert FLV to Cell Phone Format
Featured Tutorial : Learn how to create characters by Griatch
Search for :  


Post new topic Reply to topic   [ 34 posts ]   Go to page 1, 2  Next


Author Message
 Post subject:
PostPosted: Sat May 20, 2006 9:14 pm 
Offline

Joined:
Sat May 20, 2006 9:12 pm

Topics: 1
Posts: 4

Find User's Topics

Anybody know of a plugin that replicates the "exclusion" layer mode that you can find in pretty much every other PS-type program? I have searched far and wide and can't find anything, so any help would be appreciated.



Top
 Profile  
 
 Post subject:
PostPosted: Sat May 20, 2006 9:45 pm 
Online
GT Manager
User avatar

Joined:
Mon Aug 22, 2005 8:35 pm

Topics: 95
Posts: 4472

Find User's Topics
Top Layer: Set layer Mode to "Difference"
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").

_________________
Everybody makes their own fun. If you don't make it yourself, it isn't fun. It's entertainment.


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 20, 2006 10:05 pm 
Offline

Joined:
Sat May 20, 2006 9:12 pm

Topics: 1
Posts: 4

Find User's Topics
I understand now ... thank you for your help!


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 21, 2006 3:22 am 
Online
GT Manager
User avatar

Joined:
Mon Aug 22, 2005 8:35 pm

Topics: 95
Posts: 4472

Find User's Topics
Quote:
I don't quite understand what you mean when you say Top Layer and Bottom Layer. Are you working with two layers of the base image?


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://flashingtwelve.brickfilms.com/GIMP/Scripts/exclusion-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.

_________________
Everybody makes their own fun. If you don't make it yourself, it isn't fun. It's entertainment.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 21, 2006 3:43 am 
Offline

Joined:
Sat May 20, 2006 9:12 pm

Topics: 1
Posts: 4

Find User's Topics
Thank you very much. I will try out your script and let you know if it's what I'm looking for. I appreciate you taking the time to reply in such detail. ^_^


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 21, 2006 7:25 am 
Online
GT Manager
User avatar

Joined:
Mon Aug 22, 2005 8:35 pm

Topics: 95
Posts: 4472

Find User's Topics
There was a small error in the script and if anyone downloaded it before reading this post then they might wish to update it with the current one.

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).

_________________
Everybody makes their own fun. If you don't make it yourself, it isn't fun. It's entertainment.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 21, 2006 10:19 pm 
Offline

Joined:
Sat May 20, 2006 9:12 pm

Topics: 1
Posts: 4

Find User's Topics
An exclusion layer in PS is usually done with a bucket fill of the layer with a dark blue color (although it can be done with other colors for a different effect), which is then set to exclusion mode.

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.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 22, 2006 9:34 am 
Online
GT Manager
User avatar

Joined:
Mon Aug 22, 2005 8:35 pm

Topics: 95
Posts: 4472

Find User's Topics
Thanks for your response.

Quote:
An exclusion layer in PS is usually done with a bucket fill of the layer with a dark blue color (although it can be done with other colors for a different effect), which is then set to exclusion mode.

I understand now. But the layer doesn't have to be filled with a solid color, it is just commonly used this way.

Quote:
Definition of Exclusion Mode for PS: Exclusion uses the darkness of the lower layer to mask the difference between upper and lower layers.

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:

_________________
Everybody makes their own fun. If you don't make it yourself, it isn't fun. It's entertainment.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 23, 2006 9:54 pm 
Offline
GT Manager
User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics: 667
Posts: 8471

Find User's Topics
I try the routine and the script on a sample i didn't notice any difference from the ps mode,at soon i will use on more complex image i will post a link to the output

BTW is not possible add to gimp new layer mode?

_________________
Image

http://www.flickr.com/photos/97844002@N00/


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 02, 2006 6:52 pm 
Offline

Joined:
Sun Jul 30, 2006 11:22 pm

Topics: 4
Posts: 12

Find User's Topics
The script doesn't work for me... I really want to use this script but it wont work :( It just like deletes the picture.... I took two screen shots before and after I used the script... Does anything look wrong?


Before I use the script:
Image


After I use the script:
Image


Please help me...


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 02, 2006 6:53 pm 
Offline

Joined:
Sun Jul 30, 2006 11:22 pm

Topics: 4
Posts: 12

Find User's Topics
-----


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 02, 2006 7:30 pm 
Online
GT Manager
User avatar

Joined:
Mon Aug 22, 2005 8:35 pm

Topics: 95
Posts: 4472

Find User's Topics
Gimpbrushmod wrote:
Quote:
I simply run your script on a dark blue (top) layer (with my base image as the bottom layer), and it seems to work.


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).

_________________
Everybody makes their own fun. If you don't make it yourself, it isn't fun. It's entertainment.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 02, 2006 8:19 pm 
Offline

Joined:
Sun Jul 30, 2006 11:22 pm

Topics: 4
Posts: 12

Find User's Topics
Ok.. ill try that and post my results.. one second..


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 02, 2006 8:28 pm 
Offline

Joined:
Sun Jul 30, 2006 11:22 pm

Topics: 4
Posts: 12

Find User's Topics
ORIGNIAL:
Image

PaintShop Pro:
Image

GIMP:
Image

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...


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 03, 2006 6:06 am 
Online
GT Manager
User avatar

Joined:
Mon Aug 22, 2005 8:35 pm

Topics: 95
Posts: 4472

Find User's Topics
Thank you for posting the images, Saxon. I do not have Paint Shop Pro installed on my computer and your help is appreciated.

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.

Image

_________________
Everybody makes their own fun. If you don't make it yourself, it isn't fun. It's entertainment.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 04, 2006 8:32 pm 
Offline

Joined:
Sun Jul 30, 2006 11:22 pm

Topics: 4
Posts: 12

Find User's Topics
Cool, thanks for all your help. I got the same results as yours... which is pretty good! :D I also made a site layout really quick using exclusion:


Image

:h: :l:


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 22, 2006 12:22 pm 
Offline
User avatar

Joined:
Wed Jul 13, 2005 11:31 am

Topics: 130
Posts: 530

Find User's Topics
When you use this .scm do you have to change the layer from difference to screen and then sharpen, duplicate, and adjust opacity to acheive the desire effect?

_________________
I know I'm in my own little world. But its ok. They know me HERE


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 22, 2006 1:28 pm 
Online
GT Manager
User avatar

Joined:
Mon Aug 22, 2005 8:35 pm

Topics: 95
Posts: 4472

Find User's Topics
Yes, the script is only intended to emulate an "exclusion mode" between the two layers, the other steps of the tutorial would still need to be performed and the opacity of the layers would need to be adjusted to achieve the desired result .

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:

_________________
Everybody makes their own fun. If you don't make it yourself, it isn't fun. It's entertainment.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 22, 2006 2:33 pm 
Offline
User avatar

Joined:
Wed Jul 13, 2005 11:31 am

Topics: 130
Posts: 530

Find User's Topics
So the sharpening and duplicating are only done on the bottom layer and then the script is applied to the blue layer?

_________________
I know I'm in my own little world. But its ok. They know me HERE


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 22, 2006 3:12 pm 
Online
GT Manager
User avatar

Joined:
Mon Aug 22, 2005 8:35 pm

Topics: 95
Posts: 4472

Find User's Topics
Correct.

_________________
Everybody makes their own fun. If you don't make it yourself, it isn't fun. It's entertainment.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 22, 2006 3:40 pm 
Offline
User avatar

Joined:
Wed Jul 13, 2005 11:31 am

Topics: 130
Posts: 530

Find User's Topics
Ok thx

_________________
I know I'm in my own little world. But its ok. They know me HERE


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 11, 2006 8:34 pm 
Offline

Joined:
Mon Sep 11, 2006 11:42 pm

Topics: 1
Posts: 51

Find User's Topics
i tried it but i don't know if i did it right... can u try it for me with this ?Image


i got this Image


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 11, 2006 10:58 pm 
Online
GT Manager
User avatar

Joined:
Mon Aug 22, 2005 8:35 pm

Topics: 95
Posts: 4472

Find User's Topics
If you are going to use a solid color with the Exclusion Layer (which is what the original PSP tutorial does) then try the following steps:

Set Foreground color to HTML Code #052fa5 (per the tutorial, you may choose an alternate color).

Image

Duplicate your layer.

Image

Add a LayerMask to the duplicate layer, initializing it to "Grayscale copy of layer".

Image

Note how there is a white border around the layermask; this indicates that you are editing the mask and not the layer itself (this is not what you want, you will change that in the next step).

Image

Activate the layer itself by clicking on its thumbnail in the Layers window (note how the white border is now around the layer; this indicates that you are editing the layer and not the layermask).

Image

Fill the layer with the FG color ("Edit->Fill With FG Color") and set its Opacity to "50%".

Image

Set the Mode of the layer to "Difference".

Image

Your final result should be...

Image

_________________
Everybody makes their own fun. If you don't make it yourself, it isn't fun. It's entertainment.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 12, 2006 5:00 pm 
Offline
GT Manager
User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics: 667
Posts: 8471

Find User's Topics
i suppose Magic 1 was hoping for something more straight forwarded ...till i found the script useful to understund how the exclusion mode works and to use it in gimp.

But then i get a very academic question, i mean i fear i may not find a pratical use of the reply but i'm really curious:

Why is so difficult add new merging mode to gimp? why it will be needed to change something in the gimp core to do it?

let's say i have to images (or layers) A and B.
And suppose i already have 2 available merging mode something trivial as A+B and A-B (with custom setting for tranparency\opacity).

Where is the problem to merge them with a different math , as A+(A-B)...?
...a missed dialogue?
(in other words why is not possible to add new merging mode once they algoritm is know)?

I can understund why new modes could not be added to the[highlight] layer menu,[/highlight] but why can't be used by a plugin or a script. able to call 2 images and just merge them with that setting ?

NOTE many PS plugin(as Flaming Pear) give the chanche to merge the PLUGIN OUTPUT and the active layer with more then 40 different modes

And must be a reason why nobody create a (apparently) much more simple"merging plugin" that has just to merge 2 chosen images (as layers)

MUST be a reason ...but what is ?...somebody get the answer ?

I'm really curious about

_________________
Image

http://www.flickr.com/photos/97844002@N00/


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 12, 2006 11:20 pm 
Offline

Joined:
Mon Sep 11, 2006 11:42 pm

Topics: 1
Posts: 51

Find User's Topics
is this the only way to do this, fotocomics? and saulgoode, this method you've come tot ell me ... do i use this if i duplicate the layer, or if my layer is darker? can you please clear this out for me?I duplicated my layer...and isn't your second way the same as the first?.


Top
 Profile  
 
Display posts from previous:  Sort by  

Post new topic Reply to topic
 [ 34 posts ]  Go to page 1, 2  Next



Who is online

Users browsing this forum: lylejk and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Related Website
Gimp tutorials database
All rights reserved © GimpTalk 2008
forum software by
phpBB