It is currently Wed Oct 18, 2017 3:07 pm


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2, 3, 4  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... :)

_________________
blog.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: 470
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. :)

_________________
blog.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: 5130
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: 3656
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... :)

_________________
blog.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: 14128
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 4913 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: 14128
Thank you, I will try it again.

_________________
Image


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

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Luminosity Masks

9

No new posts Attachment(s) Luminosity Masks

13

No new posts Attachment(s) Luminosity Masks script

56

No new posts Attachment(s) luminosity-tiler script

26

No new posts Attachment(s) Mosaic revisited.

10



* Login  



Powered by phpBB3 © phpBB Group