It is currently Fri Apr 19, 2024 9:44 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 36 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Luminosity Masks Revisited
PostPosted: Mon Nov 11, 2013 1:51 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 12, 2012
Posts: 178
Location: Mobile, AL USA
Hi guys,

Over the weekend I went back and re-visited the creation of luminosity masks based on Tony Kuypers original tutorial for Ps. This time I wanted to create the masks in the same method as Tony, but strictly by using GIMP channels instead.

I documented what I did as a quick tutorial, and wrote up some script-fu to automate it:

Getting Around in GIMP - Luminosity Masks Revisited

I am 100% certain that the script-fu could be made faster/more efficient, so if anyone wants to hack at it, please do!

As always, comments/suggestions/rants welcome... :)

_________________
patdavid.net
Image
PIXLS.US F/OSS Photography


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Luminosity Masks Revisited
PostPosted: Mon Nov 11, 2013 3:40 pm  (#2) 
Offline
GimpChat Member

Joined: Aug 27, 2010
Posts: 491
The results on your blog are stunning. Thank you for the tutorial and the script. I'll give it a go in a bit.


Top
 Post subject: Re: Luminosity Masks Revisited
PostPosted: Mon Nov 11, 2013 3:43 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jan 12, 2012
Posts: 178
Location: Mobile, AL USA
Thanks! I hope you'll be able to get some use out of the process. :)

_________________
patdavid.net
Image
PIXLS.US F/OSS Photography


Top
 Post subject: Re: Luminosity Masks Revisited
PostPosted: Mon Nov 11, 2013 4:41 pm  (#4) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
Nice one, very informative tutorial.

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Luminosity Masks Revisited
PostPosted: Mon Nov 11, 2013 8:17 pm  (#5) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4736
patdavid wrote:
Hi guys,

Over the weekend I went back and re-visited the creation of luminosity masks based on Tony Kuypers original tutorial for Ps. This time I wanted to create the masks in the same method as Tony, but strictly by using GIMP channels instead.

I documented what I did as a quick tutorial, and wrote up some script-fu to automate it:

Getting Around in GIMP - Luminosity Masks Revisited

I am 100% certain that the script-fu could be made faster/more efficient, so if anyone wants to hack at it, please do!

As always, comments/suggestions/rants welcome... :)


Another good one... The efficiency nazi in me wondered why you didn't get the Dark from the Light by duplicating it and then applying Color/Invert. But then using the same technique for all masks makes the tutorial easier to follow.

_________________
Image


Top
 Post subject: Re: Luminosity Masks Revisited
PostPosted: Mon Nov 11, 2013 10:22 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 12, 2012
Posts: 178
Location: Mobile, AL USA
ofnuts wrote:
Another good one... The efficiency nazi in me wondered why you didn't get the Dark from the Light by duplicating it and then applying Color/Invert. But then using the same technique for all masks makes the tutorial easier to follow.


Yeah, once you start subtracting the light channel, it's easier to keep going rather than explaining how to reselect a channel a few more times as you build out each level of masks. I thought this way made the process a bit easer to follow... :)

_________________
patdavid.net
Image
PIXLS.US F/OSS Photography


Top
 Post subject: Re: Luminosity Masks Revisited
PostPosted: Wed Nov 13, 2013 2:32 am  (#7) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
patdavid wrote:
I am 100% certain that the script-fu could be made faster/more efficient, so if anyone wants to hack at it, please do!

There's really not much to be done to improve the speed, as all the heavy lifting is performed by the core libgimp functions. Nonetheless, there are a couple of other improvements that could be made, and so I provide the following revised version of your script:

http://chiselapp.com/user/saulgoode/rep ... 99c37cda66

Here is a list of the changes incorporated:
  • The original contents of the paste buffer are preserved (scripts should not interfere with copy-paste operations, unless the purpose of the script is to generate a particular paste buffer).
  • Script will work with layers that do not fill the entire canvas.
  • Script now honors the selection, i.e., it will only generate its masks within the selected region.
  • Script can be run multiple times; either for different layers or for different selected regions.
  • Mask names have the original layer name appended to them (if multiple runs are made on the same layer, mask sets will also have #1, #2, #3, ... added).
  • Script will work with grayscale images.

EDIT: The following paragraph is no longer valid. The above link is to a version of the script that follows Pat David's approach to the midtone masks.
I also swapped the M and MMM masks to provide better consistency with the light and dark masks (that is to say, the M mask is now the most inclusive of the midtones, while the MMM mask is the least inclusive). This is opposite from the original script (and perhaps from Mr Kuyper's Photoshop actions?).

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Last edited by saulgoode on Thu Nov 14, 2013 12:30 am, edited 3 times in total.

Top
 Post subject: Re: Luminosity Masks Revisited
PostPosted: Wed Nov 13, 2013 6:45 am  (#8) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Thanks Saul. I made a transparent layer with an image on it that doesn't fill the layer, I ran the filter but it didn't do anything. I made a selection within the layer and tried it and still doesn't. What am I doing wrong? Is there supposed to be a dialogue?

Image

_________________
Image


Top
 Post subject: Re: Luminosity Masks Revisited
PostPosted: Wed Nov 13, 2013 7:19 am  (#9) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
molly wrote:
I ran the filter but it didn't do anything.

Check out your Channels dock ("Windows->Dockable Dialogs->Channels").
Attachment:
molly.png
molly.png [ 11.05 KiB | Viewed 14489 times ]

You will want to read Mr David's tutorial to understand how all of the new channels can be used as luminosity masks.
molly wrote:
Is there supposed to be a dialogue?

Oops. You are right. There is no dialogue, and therefore the command should not have had an ellipsis after it. (I have updated the script.)

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Last edited by saulgoode on Wed Nov 13, 2013 7:23 am, edited 1 time in total.

Top
 Post subject: Re: Luminosity Masks Revisited
PostPosted: Wed Nov 13, 2013 7:21 am  (#10) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Thank you, I will try it again.

_________________
Image


Top
 Post subject: Re: Luminosity Masks Revisited
PostPosted: Wed Nov 13, 2013 7:28 am  (#11) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I replaced the script and it still has no dialogue. I will go find Mr. David's instrucs.
This is what shows in channels.
Image

_________________
Image


Top
 Post subject: Re: Luminosity Masks Revisited
PostPosted: Wed Nov 13, 2013 7:35 am  (#12) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
The script does not pop up a dialogue and it does not change the layer in any way. What it does is create a bunch of channels that can be used as selections or layermasks when you are editing the image. I have added a screenshot to my previous post that will hopefully illustrate things better.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Luminosity Masks Revisited
PostPosted: Wed Nov 13, 2013 7:40 am  (#13) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
molly wrote:
This is what shows in channels.
Image

Hmmm. It appears that you had the transparent (BG) layer active when you ran the script. You should have the layer with the lady's face active.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Luminosity Masks Revisited
PostPosted: Wed Nov 13, 2013 7:42 am  (#14) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
nothing changed on the layer.

_________________
Image


Top
 Post subject: Re: Luminosity Masks Revisited
PostPosted: Wed Nov 13, 2013 7:43 am  (#15) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
molly wrote:
nothing changed on the layer.

Correct. The script does not modify the layer. It only creates the masks for later usage.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Luminosity Masks Revisited
PostPosted: Wed Nov 13, 2013 7:46 am  (#16) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
o, okay that explains it, I just wondered why there was no dialogue. Thanks Saul.

_________________
Image


Top
 Post subject: Re: Luminosity Masks Revisited
PostPosted: Wed Nov 13, 2013 10:00 am  (#17) 
Offline
GimpChat Member
User avatar

Joined: Jan 12, 2012
Posts: 178
Location: Mobile, AL USA
I was kind of hoping I could get Saul to eyeball this thing for me ;)
I had been using for a while your previous script for generating this same thing (from meetthegimp: http://forum.meetthegimp.org/index.php?topic=1196.0). (Thank you for that, btw).

The problem was that in your version there, the mid-tone mask was full-range (similar to the change you've made here if I read your previous post right).

I was just wanting to keep parity with the nomenclature and workflow from Tony's original Ps tutorial for those who may be coming over. (Also, part of the intention was to help users new to using channels like this to mentally make the connection that wide lights - wide darks = narrow mids, etc...).
[edit]
Also, if a user wanted to separate out a single first range of luminosity, they might make 3 layer copies, and apply L, M, and D to each of those. They would likely expect that changes to each of those would be associated with the appropriate range, but if you flip M/MMM then the MMM will overpower the L and D by quite a bit due to it's width (Hope I'm being clear).
[/edit]

Either way, I'm glad you had a look at it, because my script-fu, frankly, sucks. I'm going to update the tutorial post with a link to your post here. Thank you very much!

_________________
patdavid.net
Image
PIXLS.US F/OSS Photography


Top
 Post subject: Re: Luminosity Masks Revisited
PostPosted: Wed Nov 13, 2013 11:44 am  (#18) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
Here is a version of the script that employs your M-MM-MMM order.

http://chiselapp.com/user/saulgoode/rep ... dd4d931473

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Luminosity Masks Revisited
PostPosted: Wed Nov 13, 2013 12:01 pm  (#19) 
Offline
GimpChat Member
User avatar

Joined: Jan 12, 2012
Posts: 178
Location: Mobile, AL USA
saulgoode wrote:
Here is a version of the script that employs your M-MM-MMM order.

http://chiselapp.com/user/saulgoode/rep ... dd4d931473


You, sir, are awesome! Thank you for that! I'm going to add links to this thread on the post (and over on the registry as well).

_________________
patdavid.net
Image
PIXLS.US F/OSS Photography


Top
 Post subject: Re: Luminosity Masks Revisited
PostPosted: Wed Nov 13, 2013 8:42 pm  (#20) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Interesting tutorial i like the idea and the result but i am fascinated also by possible variations :

as derive some of the masks not from the composite but from a single channel ;

as example a black & white panorama derived from only the red channel of a RGB image usually will show a much more dark and dramatic sky and make the skin of a face more pale but also ,often younger .

Obviously for layermask effect will be different , yet should be possible use to control luminosity not only globally but even differently on the main color ranges ,i.e. to dose luminosity differently for sky, skin and greenery .

just wandering ...

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


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

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) ofn-luminosity-masks

8

No new posts Attachment(s) New Luminosity Masks Scripts

6

No new posts Attachment(s) My latest Luminosity Masks script

1

No new posts Attachment(s) Yet another luminosity mask plug-in!

3

No new posts Attachment(s) Alternative Luminosity Mask Script

6



* Login  



Powered by phpBB3 © phpBB Group