Back to photostream

Plugin test

This picture is just an example of a filter I wrote for using in the g'mic plugin for the Gimp.

 

It was an attempt to make a lens blur filter that would allow you to adjust the bokeh somewhat. I'm quite pleased with how it turned out. Some initial experiments showed that it works great for making fake tilt-shift pictures.

 

The code:

 

#@gmic

 

#@gimp {Gentlemanbeggar's filters}

 

#**************************************

#ABOUT

#**************************************

 

#@gimp About : _none_, gimp_gb_about

#@gimp : note = note{"

#@gimp : ( Gentlemanbeggars Filter Set for G'MIC)\n\nis proposed to you by"}

#@gimp : note = note("Gentlemanbeggar")

#@gimp : note = note{"\n"}

#@gimp : sep = separator()

#@gimp : note = note{"

#@gimp : The source code of this filter is available at :"}

#@gimp : note = link("http://gentlemanbeggar.wordpress.com")

#@gimp : "}

#@gimp : sep = separator()

#@gimp : note = note{"\nThe filters in this folder are still under development and may be subject to changes."}

gimp_gb_about :

-gimp_logo "GB"'"s Filters"

 

 

#*******************************************************

#Gentlemanbeggar's Ping Pong Filter

#*******************************************************

 

#@gimp Ping Pong : gimp_gb_pp

#@gimp : note = note{"\nUsage Notes: Set Output mode to 'New image' or 'in place' to simply reverse the frames in this image. Set mode to 'New layers' to add the reversing effect to your current image."}

gimp_gb_pp :

-rv

 

#*************END OF FILTER****************

 

#*******************************************************

#Gentlemanbeggar's Lens Blur

#*******************************************************

 

#@gimp Lens Blur : gimp_gb_lb, gimp_gb_lb_preview(0)

#@gimp : note = note{"\nUsage Notes: Set Output mode to 'New image' or 'in place' to simply reverse the frames in this image. Set mode to 'New layers' to add the reversing effect to your current image."}

#@gimp : Amplitude = float(10,5,20)

#@gimp : Bokeh = float(7,0,20)

#@gimp : sep = seperator()

#@gimp : Preview type = choice("Full","Forward horizontal","Forward vertical","Backward horizontal","Backward vertical")

 

gimp_gb_lb :

-spread 3

-heat_flow $1

-dilate_circ $2

-compose_lighten

 

gimp_gb_lb_preview :

-gimp_split_preview "-gimp_gb_lb ${1--2}",$-1

 

#*************END OF FILTER****************

 

 

#******************************************

#END OF DIRECTORY

#******************************************

 

#@gimp _

3,565 views
1 fave
2 comments
Uploaded on May 20, 2011
Taken on May 2, 2011