RSS

Plugin test

19 May
Plugin test, originally uploaded by gentlemanbeggar.

Via Flickr:
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.

Here’s a txt file of the filter.  You should just be able to rename the file or copy and paste the text into your custom gmic file.

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(“https://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 _

Advertisements
 
Leave a comment

Posted by on May 19, 2011 in photography

 

Tags: , , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: