fence-post's avatar

GIMP Contrast Mask Script

68 56 25K (1 Today)
By fence-post   |   
Published:
EDIT October 9, 2008: Updated script to work in GIMP 2.6 (the newest stable version.) If you have a previous version of this script, please delete it to avoid conflicts.

Let me know if you have any trouble with it.


See update information in bold below....

This script was made as the result of a request by Photocomix (www.flickr.com/photos/97844002… and uses steps he described in creating a contrast mask in a method different from a "typical" contrast mask due to a bug in GIMP's Overlay Mode. It works in GIMP 2.4 only. If you would like a script for GIMP 2.2, click here: fencepost.gimpdome.com/Scripts…

The script makes a duplicate of the active layer and places it above the active layer. The blend mode of the duplicate layer is set to Hard Light. The bottom layer is desaturated using the desaturation type set by the user and the colors of the original layer can be inverted if the user so chooses. A Gaussian Blur is applied using horizontal and vertical blur settings set by the user when the script is first run. The layers can be merged if desired.

Updated 1/16/08: The option to work on the selected area only has been removed. After several tests of my own and comments from PhotoComix, we decided that working on the selected area was just too unsightly and didn't produce the desired results. So, that option's just been removed.

Updated 1/11/08: Based on some suggestions/requests by Photocomix (PC), I've updated the script to work much better. The updates implement some new defaults as requested by PC, as well as allow the user to decide if the script will work on an existing selection only. That way, if you only want portions of the layer affected, the actions will take place on the selected area only. The script actually works on the whole layer, but I've used layer masks to hide the rest of the area. Also, if the merge option is left off, the layer masks will be kept in place you can tweak the mask at your leisure. I've also made the script name each layer based on the appropriate action taken on the respective layer. Hope you like the changes.

Just click on the download link to open the script in your browser window and then save it (File Menu > Save) in your GIMP scripts folder (ie....C:Program FilesGIMP-2.0sharegimp2.0scripts)

Then, go to the main GIMP window (not the image window) and choose the Filters > Script-FU > Refresh Scripts and the script can be found in the Image's Filters Menu > Photo > Photocomix Contrast Mask...

Enjoy!

Art
Comments56
anonymous's avatar
Join the community to add your comment. Already a deviant? Log In
necklacemaker's avatar
hello, I'd like to give this a try, but mine gimp is 2.8.22 (most stable version, but not highest in #, lol...is your script safe for me?
dissizithawaii's avatar
dissizithawaiiHobbyist General Artist
thanks for sharing
Frankensidy's avatar
FrankensidyHobbyist Photographer
i absolutely loved it!!! thank you so so much!!
ChristineIsDEAD's avatar
Thank you so much
MomPhotographer's avatar
MomPhotographer Photographer
great! finally I've found some script that works :-) thanks for sharing!
game-flea's avatar
This is a very usefull script :) Thanks
fence-post's avatar
You're welcome!
1days's avatar
Thanks FP! Can't wait to use it. Love your work!
antichange's avatar
antichange Digital Artist
Yay for updates! (:
AjaLee's avatar
Some how I can't find it on mine. Could someone help me out?
fence-post's avatar
Just a couple of quick questions so I can help you figure out what happened...

What happened when when you clicked on the Download link?
Are you using Windows?
If you're using Windows, how did you save the file?

Let me know and I'll try to help you out.

Art
AjaLee's avatar
Well when I click on the download link it goes to this white page with a bunch of words that looks almost like html.

Yes, I'm using Windows.
fence-post's avatar
Actually, that's the script! Here's what you need to do:

When you open up the script, copy the entire code (Ctrl+A) and then open up Windows Notepad (should be some place like this Start > Accessories > Notepad). When Notepad opens, paste the code (Ctrl+V) into it. Then, go to File > Save As, locate your GIMP Scripts folder (C:\Program Files\GIMP-2.40\share\gimp\2.0\scripts), give the Script a Name (with a ".scm" extension on the end), and then under "Save as Type" select All Files. Hit the Save button. Then in GIMP go to Xtns > Script-Fu > Refresh Scripts and your script should be ready to use.

Let me know if you still have any trouble.

Art
AjaLee's avatar
Thank you very much.
fence-post's avatar
You're welcome! I assume, then, that you got it to work?
ubiquirk's avatar
Thanks for making this and sharing!
fence-post's avatar
You're welcome!
Chelsaay's avatar
i keep getting this error
<img src="https://i61.photobucket.com/albums/h55/chels_oo7/error.jpg" border="0" alt="Photobucket">
fence-post's avatar
Were you able to get that problem resolved? Itt looks more like a problem with your image host, not the script. Let me know.

Art
fence-post's avatar
Oos....didn't give you the new download link: [link]

It's not my day!
Chelsaay's avatar
yeah it works now! thanks a bunch.
fence-post's avatar
Glad it works! Sorry for the inconvenience.

Art
anonymous's avatar
Join the community to add your comment. Already a deviant? Log In