Shop Forum More Submit  Join Login
GIMP Powertoning Script by fence-post GIMP Powertoning Script by fence-post
EDIT October 9, 2008: This script has been tested in GIMP 2.6 (the newest stable version of GIMP) and it works fine with no modifications.

Based on suggestions by Insanity-Prevails (insanity-prevails.deviantart.c…, I have modified the script to allow the layers to be merged if the user so desires. Thanks for the suggestions, IP!

This script is based on a tutorial presented by gimptalk.com member, lylejk. You can view the tutorial here: (www.gimptalk.com/forum/topic/P….
Stop by and say "hi" to lylejk and tell him thanks for the great tutorial and allowing it to be put into script format.

The script takes an existing image's active layer and makes two copies: setting the Middle copy to Saturation and the Top copy to Value. The Original Layer is then filled with your choice of color. Gives a very dramatic effect and, depending on the image, somewhat resembles an Infrared Photograph.

Just download the scm file and place it in your GIMP scripts folder (ie....C:Program FilesGIMP-2.4sharegimp2.0scripts)

Then, go to the main GIMP window (not the image window) and choose the Xtns Menu > Script-FU > Refresh Scripts and it should appear in the Image Window under the Filters Menu > Decor > Power Toning....

This is my very first script so please be gentle!

Enjoy!

Art
Add a Comment:
 
:icondjeva-djeva:
Djeva-Djeva Featured By Owner Jun 23, 2015
Very dramatic effect indeed, I really like it. Thanks!
Reply
:iconcoyokaigan:
coyokaigan Featured By Owner Apr 28, 2015
thanks! 
Reply
:iconmimeenko:
mimeenko Featured By Owner Jul 18, 2011   Photographer
Hi Art (what a nice name)
I downloades your script but somehow, it doesn't work. When I try to refresh the script (in Script FU) I get an error message which says something like : failed on invalid imput arguments. Maybe it's no more available, I don't know. I've done everything like you explain but it doesn't want to work. Do you know what I can do????
Thanks a lot for your help
Reply
:iconecstaticbitch:
ecstaticbitch Featured By Owner May 10, 2010
Uhmmm....where exactly do you download it from? I can't see a file anywhere.
Reply
:iconfence-post:
fence-post Featured By Owner May 10, 2010
Click on the download link (which is probably on the left side of your screen) and *hopefully* you'll either be given an option to open/save the file OR it will open up in your browser window as a bunch of text. If it opens as a bunch of text, that's really the script and you can click on File > Save As in the browser window and save it a text file, but give it an ".scm" extension. Save it to your GIMP scripts folder, which is somewhere like this: C:\Users\UserName\.gimp-2.6\scripts. If you still have trouble, let me know and I'll help you out.

Wonderful gallery you have! Gorgeous!

Art
Reply
:iconecstaticbitch:
ecstaticbitch Featured By Owner May 14, 2010
Thank you - sorry for my ignorance, i've never downloaded off deviantart before haha. I figured it out eventually :p
Reply
:iconjrockstar11385:
jRockstar11385 Featured By Owner Jan 18, 2010
What an awesome script. I love the effects, wonder what would happen if I try to use a gradient.....XD
Reply
:iconxxneko-naminexx:
xxNeko-Naminexx Featured By Owner Jun 7, 2009  Hobbyist General Artist
im not sure when you mean "mail window to gimp" ._.

i kno this shounds stupid but can you tell me
Reply
:iconfence-post:
fence-post Featured By Owner Jun 7, 2009
I've looked through my post and the script itself and can't find that statement. Can you show me where I said that. I have no clue what it means. Sorry.
Reply
:iconxxneko-naminexx:
xxNeko-Naminexx Featured By Owner Jun 7, 2009  Hobbyist General Artist
It's For Your Toning Script Here I Copied The Phrase For You... I Not Sure What This Means B/c I Would Like To Try This Out :3 (the first sentence is what im having issues with)

Then, go to the main GIMP window (not the image window) and choose the Xtns Menu > Script-FU > Refresh Scripts and it should appear in the Image Window under the Filters Menu > Decor > Power Toning....



sorry for the inconvience....
Reply
:iconkitafee:
Kitafee Featured By Owner Jan 4, 2009   Photographer
hey
i got gimp quite recently
its so confuzing XD
heh. what do you do with a script exactly?
and how can download and save it
its text?
thank you xxx
Reply
:iconubiquirk:
ubiquirk Featured By Owner Jun 28, 2008
Nice effect! Thanks for sharing.
Reply
:iconfence-post:
fence-post Featured By Owner Jun 30, 2008
Glad you like it! Thanks.

Art
Reply
:iconminutestocountdown:
Minutestocountdown Featured By Owner May 30, 2008
umm...when I tryied to download it, it just gave me a page with text...what should I do...
Reply
:iconfence-post:
fence-post Featured By Owner Jun 16, 2008
The script is actually a text file, so that part is correct. Just save it to your desktop and then copy/paste it into your GIMP scripts folder. Let me know if you need additional help.
Reply
:iconorachel:
orachel Featured By Owner Apr 27, 2008
Love the look of this! I'm a total novice gimper, so praying I can make this work! GORGEOUS work!
Reply
:iconfence-post:
fence-post Featured By Owner Jun 16, 2008
Sorry for the delay in responding. I hope you were able to get it to work and it provided the look you were after. If not, thanks for trying it out and let me know if there's some way I can improve it.

Art
Reply
:iconshadowwarior:
shadowwarior Featured By Owner Mar 30, 2008
This is really awesome, been looking for something like this :D
Reply
:iconfence-post:
fence-post Featured By Owner Jun 16, 2008
Glad you liked it! Thanks!
Reply
:iconhenred5:
henred5 Featured By Owner Dec 23, 2007
Can't wait to try this on The Gimp :XD
Reply
:iconfence-post:
fence-post Featured By Owner Dec 25, 2007
Let me know if you have any trouble with it.

Art
Reply
:iconhenred5:
henred5 Featured By Owner Dec 26, 2007
No worries, it works perfectly. Thank you so much for putting this in a simple to use script.
Reply
:iconfence-post:
fence-post Featured By Owner Dec 26, 2007
:D
Reply
:iconlizetm:
LizetM Featured By Owner Dec 21, 2007
Very nice. I like. Will have to sue it in some icons and stuff. :D
Reply
:iconfence-post:
fence-post Featured By Owner Dec 25, 2007
I'm glad! Thanks!

Art
Reply
:iconsurfing-ant:
surfing-ant Featured By Owner Dec 16, 2007
Whoa.
I don't use GIMP anymore since I had to learn PS and use it for school, but this script looks darn awesome.
You're such a GIMP guru, I've always thought so and long may it last :)
Keep being awesome, this script looks like it rocks :)
Reply
:iconfence-post:
fence-post Featured By Owner Dec 20, 2007
Well, I don't know about "guru", but thank you for the kind words. I just really like learning new things and am too bull-headed to let anything beat me!

How is school going? What year are you in and what are you studying?

Have a great holidays!

Art
Reply
:iconsurfing-ant:
surfing-ant Featured By Owner Jan 3, 2008
Sorry for replying so late!

Actually I just finished my course (it was a one year diploma), the course was in Digital Media. Pretty much just web design...

So now I have to find a job! I'm excited to get one which I really like and can learn from... Fingers crossed!

My portfolio is here: [link] if you want to see what I got up to :)
Reply
:iconfence-post:
fence-post Featured By Owner Jun 16, 2008
So sorry for the major delay in responding! My life has been crazy busy. Congrats on your diploma! Have you found the job you wanted?

Art
Reply
:iconsurfing-ant:
surfing-ant Featured By Owner Jun 18, 2008
Even better, found a job better than the one i wanted ;)

No worries about the reply delay ;)
Reply
:iconfence-post:
fence-post Featured By Owner Jun 25, 2008
Congratulations! Glad you got a better one. Can't beat that!
Reply
:iconcomicfan2000:
Comicfan2000 Featured By Owner Dec 14, 2007
That is awesome fence, gotta give it a go this weekend. :)

Cheers,

Paul
Reply
:iconfence-post:
fence-post Featured By Owner Dec 20, 2007
Have fun, but be careful with it....don't hurt yourself! :D
Reply
:iconlizetm:
LizetM Featured By Owner Dec 13, 2007
Looks nice. I'll have to try it later. :D
Reply
:iconfence-post:
fence-post Featured By Owner Dec 13, 2007
Thanks! Have fun!

Art
Reply
:iconinsanity-prevails:
Insanity-Prevails Featured By Owner Dec 12, 2007
This is a nice first script. Installed it and tested it. Works nicely.

I have a suggestion though.

Add this to the script just after the let statement: (gimp-context-push). Then add this to the end before registering the script: (gimp-context-pop).

The current script changes the foreground colour and keeps it like that after the script has finished, which may not be what the user wants. Up to you of course, in case you feel it better to have the foreground colour changed for the user.

Also, a thought more than anything. What about an option that automatically merges the 3 layers together if the user asks for it?

Great first script anyway, and good with the comments. Looking forward to more scripting from you. :)
Reply
:iconfence-post:
fence-post Featured By Owner Dec 12, 2007
I may have misread you previous post....in re-reading it, I assume the context-pop is what resets everything back to default?
Reply
:iconlifebtb:
lifebtb Featured By Owner Dec 15, 2007  Hobbyist Digital Artist
Former professional programmer here, thought I might offer a bit of explanation about the push/pop concept for future reference...

The terms "push" and "pop" are usually used in reference to something called a "stack". This is usually just a chunk of memory a program uses. The easiest way I know to describe it is this:

First, think of stack of plates like you might see in a cafeteria. Each plate represents something that needs to be done, or a single item or note on our to-do list. When you add an item to the list of things to be done it's exactly like adding a plate to the top of the stack in the cafeteria. That's called "pushing". You push a new plate onto the stack.

Now consider how you make a stack of plates smaller. Simple, you take a plate off the top. This is called "popping". When you are ready to do the next thing on your list of chores you pop the top plate off the stack and do whatever that plate represents.

How do you finish your chore list or get rid of the stack of plates? Keep popping plates off the top of it until it is gone.

It's really that simple of an idea.

Applied to this specific scenario, using "context-push" adds a plate that says "change the context of all statements after this to that of just the image I'm working with and not the global settings of the GIMP application". Every plate added to the stack above that is now in that limited context rather than the global one. So GIMP chugs along doing the stuff added to its stack of plates after that (which is really above that in terms of a physical stack of plates) until it has worked back down the stack to the plate that changed the context. Issuing the "context-pop" statement pops that plate back off the stack, and now the remaining plates that were below it are processed back in the global context.

Hope that helps. It's crystal clear to me, but I've been working with this stuff for over a decade... Personally I like to try to understand the underlying concept so the next time I encounter something similar I'll know what is going on and why. That was my goal here.

Have a great day!

- Steve
Reply
:iconfence-post:
fence-post Featured By Owner Dec 16, 2007
Excellent example, Steve! Thanks for taking the time to fill me/anyone else in on this subject. Makes perfect sense to me....just wish the GIMP developers could explain things in such easy terms. I'm sure they don't try to make it difficult, but for folks like me, it kinda comes across that way. You'd be very helpful as a GIMP developer. :D

Thanks again!

Art
Reply
:iconlifebtb:
lifebtb Featured By Owner Dec 16, 2007  Hobbyist Digital Artist
No problem! Glad to help. I've thought about getting in on some GIMP development, actually. Might just do that one day. :)
Reply
:iconfence-post:
fence-post Featured By Owner Dec 20, 2007
Thanks again! Take care.

Art
Reply
:iconinsanity-prevails:
Insanity-Prevails Featured By Owner Dec 12, 2007
Yeah. Basically, everything that is set between context-push and context-pop is done on a temporary basis. When context-pop comes around settings revert back to what they were before context-push was used.

So if my foreground colour was black it would still be black after running the script regardless of what colour I picked in the user input dialogue.
Reply
:iconfence-post:
fence-post Featured By Owner Dec 13, 2007
Thanks a bunch. I've added the push/pop and am working on the merging of the layers.

One last question: What does the gimp-displays-flush expression do? It's there in my script, but I don't really understand it.

Take care.

Art
Reply
:iconinsanity-prevails:
Insanity-Prevails Featured By Owner Dec 13, 2007
Updates the display so that the changes made appear onscreen immediately.

Like, if you removed/commented out the command then there wouldn't be any visual change in the canvas window until the user made some kind of action, like clicking a layer.
Reply
:iconfence-post:
fence-post Featured By Owner Dec 13, 2007
Thanks a bunch! Now on to more scripts!

Art
Reply
:iconfence-post:
fence-post Featured By Owner Dec 12, 2007
Thanks for the fave on the script and excellent suggestions! I'll definitely add those changes in. I've seen the context-push/pop statements in yours/other scripts, but to be quite honest with you, I have no clue what they really do. I've read the comments in the Procedure Browser, but not being a programmer, the language confuses me. If you've got a good understanding of the statements, by all means, pass it my way.

BTW, do you use the Script-FU console while writing? I would have never been able to get through this one without it. I've finally figured out how to literally change an existing image right from there.

Thanks again!

Art
Reply
:iconajsk84life:
ajsk84life Featured By Owner Dec 11, 2007
nice one
Reply
:iconfence-post:
fence-post Featured By Owner Dec 13, 2007
Glad you like it, thanks!

Art
Reply
:icona2j3:
a2j3 Featured By Owner Dec 11, 2007
Great job Fence. :sherlock: You always do a wonderful job. :highfive:

Regards

Jo
Reply
:iconfence-post:
fence-post Featured By Owner Dec 13, 2007
Thanks, Jo!
Reply
Add a Comment:
 
×




Details

Submitted on
December 11, 2007
File Size
3.1 KB
Link
Thumb

Stats

Views
31,859 (2 today)
Favourites
117 (who?)
Comments
52
Downloads
10,279

License

Creative Commons License
Some rights reserved. This work is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.