It is currently Thu Apr 24, 2014 2:44 pm


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 115 posts ]  Go to page 1, 2, 3, 4, 5 ... 12  Next
Author Message
 Post subject: GC Shadow V1.2 (with Gradient Shadows & Glow)
PostPosted: Mon May 27, 2013 1:34 am  (#1) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 3885
Location: Gimpville
GC Shadow V1.2 (07-2013) - (c) Copyright 2013 GPLv3

Created by GnuTux

Special thanks to Graechan and SaulGoode for their contributions.

===========================
Improved Drop Shadow Script
===========================
Added Glow, Inner Shadow, Inner Glow and Feathering
Specify separate x & y blue radius
Added the ability to specify shadow name (or pass from another script)
Label shadow layers and using selected (or passed) layer name + shadow type
Added the ability to keep drop shadow on top at all times
V1.1 Now includes gradient shadow & glow support
Fully compatible wih GIMP 2.6.x or GIMP 2.8.x (with layer group support)

Image

Any suggestions for improvements/enhancements to this script, would be appreciated.

Located in Filters/Light and Shadow/GC Shadow..

Script Updated to V1.1 Official Release

Change Log
RC V0.1 - Initial Release Candidate
RC V0.2 - Fix Gaussian limits, Merge visible layers, Clear script's selections on exit
RC V0.3 - Resize shadow layer to compensate for shadow offset, blur & feather, Allow resize toggle, Correct shadow X & Y minimum limits
RC V0.4 - Fix Merge Visible Layers Bug that was introduced in RC v0.03
RC v0.5 - Improve layer positioning logic & correct artifact bug when resizing layers, Add option to merge selected layer with shadow layer
RC V0.6 - Added support for GIMP 2.8 layer groups, Name layers with selected shadow options, If shadow name is blank (default), use selected layer name, dump merge visible layers.
RC V0.7 - If shadow name is blank (default) then use selected layer name
Add toggle to keep shadow layer above selected layer
Simplify shadow merge logic
Always add alpha channel
Dump merge visible layers option
Rework image sizing with logic from original GIMP Drop Shadow Script
Ensure compatibility with GIMP 2.6.x & GIMP 2.8.x
=====================
V1.0 - Official Release
Correct small bug with resizing when glow is selected
When resizing the image, execute layer to image size on selected layer
V1.1 - Added Support for Gradient Shadow & Glow
V1.2 - Corrected bug to properly handle linked layers

Download the script from GIMP Scripts

Image
Image
Image
Image

Gradient Shadows

Drop Shadow
Image

Inner Shadow
Image

Outer Glow
Image

Inner Glow
Image

Inner & Outer Glow
Image

Extrusion
Image

Image

_________________
Image
"The creative individual is always more important than any established style or system." - Bruce Lee


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Profile  
 
 Post subject: Re: Custom Shadow Procedure
PostPosted: Mon May 27, 2013 2:03 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Jul 17, 2012
Posts: 2680
Location: Germany - NRW
i had to try this, although i prefer doing dropshadows the manual way

cool idea to have seperate x and y sliders for the offset !
it would be even better if there was a way to use an angle instead of x/y coordinates

one thing i dont understand is, why is there feather and blur ?
and how does blurring by 30 and feathering by 5 add up ???

_________________
http://gimp-science-labs.blogspot.de/


Top
 Profile  
 
 Post subject: Re: Custom Shadow Procedure
PostPosted: Mon May 27, 2013 2:13 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 1772
Location: US
Tested your script. Few notes.
Script leaves alpha selection active.
Feathering works on selection, so i don't see any point in doing that if the script gaussian blurs shadow afterwards.
Maybe replace it by adding noise.
Blurring by zero value (e.g. i need a sharp shadow) returns error on invalid gaus-blur argument.
Merge layers as an option?

_________________
Image


Top
 Profile  
 
 Post subject: Re: Custom Shadow Procedure
PostPosted: Mon May 27, 2013 2:14 am  (#4) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 3885
Location: Gimpville
Esper wrote:
one thing i dont understand is, why is there feather and blur ?
and how does blurring by 30 and feathering by 5 add up ???

Well, I'm basically just tossing everything against the wall to see what sticks. :hehe

My initial thought process was that there might be times when you just want to feather, with little or no blur. :smiley2

_________________
Image
"The creative individual is always more important than any established style or system." - Bruce Lee


Top
 Profile  
 
 Post subject: Re: Custom Shadow Procedure
PostPosted: Mon May 27, 2013 2:21 am  (#5) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 2649
Location: Australia
GnuTux may I suggest that if no selection was there to begin with then no selection should be there when finished

(let* (
(shadow-layer -1) ; Shadow layer
(saved-selection -1) ; Save Selection Variable
(sel (car (gimp-selection-is-empty img)))
)

then at the end

(if (= sel TRUE) (gimp-selection-none img))

_________________
Image
GMT 22:00-07:00


Top
 Profile  
 
 Post subject: Re: Custom Shadow Procedure
PostPosted: Mon May 27, 2013 2:23 am  (#6) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 3885
Location: Gimpville
K1TesseraEna wrote:
Script leaves alpha selection active.

Could that be useful or is it more of a problem? I was thinking if one is performing multiple manual selections, it should keep those. Otherwise, if the results were unsatisfactory, the user would have to select again.

K1TesseraEna wrote:
Feathering works on selection, so i don't see any point in doing that if the script gaussian blurs shadow afterwards.
Maybe replace it by adding noise.

That's an interesting idea. :bigthup

K1TesseraEna wrote:
Blurring by zero value (e.g. i need a sharp shadow) returns error on invalid gaus-blur argument.
Merge layers as an option?

Ah, yes. That's a bug. Thanks for pointing that out. Merge layers sounds good!

Thanks!

_________________
Image
"The creative individual is always more important than any established style or system." - Bruce Lee


Top
 Profile  
 
 Post subject: Re: Custom Shadow Procedure
PostPosted: Mon May 27, 2013 2:29 am  (#7) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 3885
Location: Gimpville
Graechan wrote:
GnuTux may I suggest that if no selection was there to begin with then no selection should be there when finished

That is a good point, Graechan. I probably shouldn't leave a selection the script generates. That might have been K1TesseraEna's point, as well. I guess I should keep any selections coming in, but when no selections are there to begin with, don't add any. :bigthup

_________________
Image
"The creative individual is always more important than any established style or system." - Bruce Lee


Top
 Profile  
 
 Post subject: Re: Custom Shadow Procedure
PostPosted: Mon May 27, 2013 2:33 am  (#8) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 3885
Location: Gimpville
Esper wrote:
cool idea to have seperate x and y sliders for the offset !
it would be even better if there was a way to use an angle instead of x/y coordinates.

I suppose I could allow the user to specify an angle in degrees, along with a distance, then just map to the x/y coordinates GIMP uses.
(gimp-layer-translate shadow-layer shadow-offsetx shadow-offsety)

_________________
Image
"The creative individual is always more important than any established style or system." - Bruce Lee


Top
 Profile  
 
 Post subject: Re: Custom Shadow Procedure
PostPosted: Mon May 27, 2013 3:00 am  (#9) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 2649
Location: Australia
GnuTux The script results are great

Image

Image

Image

_________________
Image
GMT 22:00-07:00


Top
 Profile  
 
 Post subject: Re: Custom Shadow Procedure
PostPosted: Mon May 27, 2013 3:55 am  (#10) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 3885
Location: Gimpville
:tyspin Graechan, Esper and K1TesseraEna for testing this out and for your suggestions.

Your results are better than mine, Graechan. :hehe

I've fixed the Gaussian bug, ensured the selections are handled properly and added a merge visible layers option. Updated the first post with the new code.

I still need to decide the best method of resizing the shadow layer to compensate for shadow and blur offsets. As of now, it's "resize canvas", then "layer to image size". I'll go with that if there are no better suggestions.

Inner glow (black)
Image

_________________
Image
"The creative individual is always more important than any established style or system." - Bruce Lee


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 115 posts ]  Go to page 1, 2, 3, 4, 5 ... 12  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 4 guests


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

Search for:
Jump to:  

* Login  

* Subscribe to Gimp Chat's RSS Feed    * Subscribe to Gimp Chat's Tutorial Feed    * Subscribe to Gimp Chat's G'MIC Feed


Powered by phpBB3 © phpBB Group