It is currently Sun May 19, 2013 12:59 pm


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 28 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: G'MIC Chalk It Up
PostPosted: Sun Aug 19, 2012 10:33 am  (#1) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 555
Bonjour,

Here is a small G'MIC program to create an effect of chalk.
It's very inspired by the tutorial proposed by Lylejk :clap http://justpaste.it/chalk_it_up
To test the program to decompress the archive, enter the following command in a terminal : gmic -m Chalk_It_Up_By_Lylejk.txt -Chalk_It_Up
For those who use the archives 64-bit Windows, unzip in .....\gmic_standalone

Image test : Junior Barra http://www.flickr.com/photos/juniorcalou/2460898834/ (licence CC BY-NC-SA 2.0)

Image


Attachments:
test.jpg
test.jpg [ 955.44 KiB | Viewed 708 times ]
GMIC_Chalk_It_Up.zip [484.88 KiB]
Downloaded 52 times
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: G'MIC Chalk It Up
PostPosted: Sun Aug 19, 2012 11:21 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 405
Very nice!
Thanks Lylejk and samj!

But, How can I add the filter to be used by G'MIC in Gimp? (Linux)

_________________
Image
Be patient, English is not my language.


Top
 Profile  
 
 Post subject: Re: G'MIC Chalk It Up
PostPosted: Sun Aug 19, 2012 12:32 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 491
Oh yes, samj, please, please, please create your own G'MIC filters source, so I can add it to G'MIC, and everyone could benefit from this chalk filter (and all future filters you will made :) ).
The only thing missing is the ''#@gimp" comments to describe the plug-in interface to your filters.

Having your own filters source in the plug-in is actually very simple to setup. You need to create a .gmic file hosted in a permanent URL (as you own your web space, this will be super-easy). Look at what Garagecoder (one of the G'MIC filters creator) did it, his file is really clear :

http://s406833247.websitehome.co.uk/gmi ... coder.gmic

You only have to give me the complete URL you chose, and I will add it for all the plug-in users by default.


Top
 Profile  
 
 Post subject: Re: G'MIC Chalk It Up
PostPosted: Sun Aug 19, 2012 12:42 pm  (#4) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 555
Bonjour,

I'm sorry but I've never been able to create a .gmic file that works...


Top
 Profile  
 
 Post subject: Re: G'MIC Chalk It Up
PostPosted: Sun Aug 19, 2012 12:47 pm  (#5) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 8936
Location: "Looking for my eraser" =P
I am not sure how to use GMIC faves or extra filters in Linux.

_________________
Image
Gimp Rocks Blog
Simply Gimp Tutorials
"Once your in the cloud, you're in the net"
____________
OK, . . . . so what's the speed of dark?


Top
 Profile  
 
 Post subject: Re: G'MIC Chalk It Up
PostPosted: Sun Aug 19, 2012 4:01 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 491
Here is one template of a .gmic file that should work in your case (with your filter included) :
Code:
#@gmic

#-------------------
# Released filters
#-------------------


#-------------------
# Testing filters
#-------------------

#@gimp _<b>Testing</b>
#@gimp <i>Samj</i>
#------------------

#********** Chalk it up **********
#@gimp Chalk it up : samj_chalkitup, samj_chalkitup_preview
#@gimp : sep = separator(), note = note("<small>Painting parameters</small>")
#@gimp : Abstraction = int(5,0,10)
#@gimp : Details scale = float(2.5,0,10)
#@gimp : Color = float(1.5,0,5)
#@gimp : Smoothness = float(50,0,200)
#@gimp : Sharpen shades = bool(1)
#@gimp : sep = separator(), note = note("<small>Morpho parameters</small>")
#@gimp : Action = int(5,0,32)
#@gimp : Size = int(5,0,32)
#@gimp : Invert colors = bool(0)
#@gimp : Shape = int(0,0,1)
#@gimp : sep = separator(), note = note("<small>Spread parameters</small>")
#@gimp : X-variations = float(0.8,-5,5)
#@gimp : Y-variations = float(1.9,-5,5)
#@gimp : sep = separator(), Preview type = choice("Full","Forward horizontal","Forward vertical","Backward horizontal","Backward vertical")
#@gimp : sep = separator(), note = note("<small>Author : <i>Samj</i>.      Latest update : <i>2012/08/19</i>.</small>")

samj_chalkitup :

####### Déclaration des variables

#gimp_painting
Abstraction=$1
Details_scale=$2
Color=$3
Smoothness=$4
Sharpen_shades=$5

#gimp_morpho
Action=$6
Size=$7
Invert_colors=$8
Shape=$9

#gimp_spread
X_variations=$10
Y_variations=$11

####### Ligne de commandes

  -repeat @# -l[$>]
    -gimp_painting $Abstraction,$Details_scale,$Color,$Smoothness,$Sharpen_shades -gimp_morpho $Action,$Size,$Invert_colors,$Shape,0,1 -gimp_spread $X_variations,$Y_variations,0
  -endl -done

samj_chalkitup_preview :
  -gimp_split_preview "-samj_chalkitup ${1--2}",$-1


#@gimp _


As you can see, this is quite easy to understand. Please set correct parameter ranges as I did it quickly. Writing such .gmic file is very interesting because it automatically benefit to a large audience (all plug-in users, via a simple filters update), and is not harder to do than writing a bash script. So I think this is worth doing it :p


Top
 Profile  
 
 Post subject: Re: G'MIC Chalk It Up
PostPosted: Sun Aug 19, 2012 4:31 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 4994
Saved your code to samj.gmic David and placed it in the Roaming folder as are the other .gmic files but the chalkitup preset doesn't show up anywhere. Anyway, cool idea to do it all in gmic. Thanks again to samj for creating the cool script-fu. Love time savers. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Profile  
 

 Post subject: Re: G'MIC Chalk It Up
PostPosted: Sun Aug 19, 2012 6:45 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 491
You need to rename it to 'gmic' only Lyle.


Top
 Profile  
 
 Post subject: Re: G'MIC Chalk It Up
PostPosted: Sun Aug 19, 2012 7:37 pm  (#9) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 555
:tyspin Ronounours , :tyspin Lylejk

The example works perfectly. Here's a screenshot:


Attachments:
test_fichier_gmic.png
test_fichier_gmic.png [ 74.52 KiB | Viewed 598 times ]
Top
 Profile  
 
 Post subject: Re: G'MIC Chalk It Up
PostPosted: Sun Aug 19, 2012 8:01 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 4994
Thanks David; it works . I like the preview ability. :)


Attachments:
DSC00422crp_gchk.jpg
DSC00422crp_gchk.jpg [ 839.52 KiB | Viewed 591 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 28 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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 RSS Feed


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group