It is currently Tue Jul 23, 2024 12:19 am


All times are UTC - 5 hours [ DST ]



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

Joined: May 09, 2012
Posts: 914
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 4474 times ]
GMIC_Chalk_It_Up.zip [484.88 KiB]
Downloaded 180 times
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: G'MIC Chalk It Up
PostPosted: Sun Aug 19, 2012 10:21 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 726
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
 Post subject: Re: G'MIC Chalk It Up
PostPosted: Sun Aug 19, 2012 11:32 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
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
 Post subject: Re: G'MIC Chalk It Up
PostPosted: Sun Aug 19, 2012 11:42 am  (#4) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Bonjour,

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


Top
 Post subject: Re: G'MIC Chalk It Up
PostPosted: Sun Aug 19, 2012 11:47 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14725
Location: USA
I am not sure how to use GMIC faves or extra filters in Linux.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


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

Joined: Jan 03, 2011
Posts: 1656
Here is one template of a .gmic file that should work in your case (with your filter included) :
#@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
 Post subject: Re: G'MIC Chalk It Up
PostPosted: Sun Aug 19, 2012 3:31 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12535
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
 Post subject: Re: G'MIC Chalk It Up
PostPosted: Sun Aug 19, 2012 5:45 pm  (#8) 
Offline
GimpChat Member
User avatar

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


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

Joined: May 09, 2012
Posts: 914
: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 4364 times ]
Top
 Post subject: Re: G'MIC Chalk It Up
PostPosted: Sun Aug 19, 2012 7:01 pm  (#10) 
Offline
GimpChat Member
User avatar

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


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

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: G'MIC Chalk It Up
PostPosted: Mon Aug 20, 2012 2:55 am  (#11) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
I've added a new filters source from Samj in the G'MIC plug-in.
All you need is just to refresh *twice* your filters inside the plug-in, and the Samj's filters should be integrated in the filters tree then (only the Chalk-it-up filters for now on).

More infos here : http://www.flickr.com/groups/gmic/discu ... 155481890/

Thanks again Samj !


Top
 Post subject: Re: G'MIC Chalk It Up
PostPosted: Mon Aug 20, 2012 3:00 am  (#12) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12535
Thanks David; left a message at the G'MIC Flickr. Again, I would like to thank samj too. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: G'MIC Chalk It Up
PostPosted: Mon Aug 20, 2012 8:24 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 726
I love this filter. Thank you all!
Image
By the way, when the image has alpha channel the filter does not work. It should be that way?. That happened to me with the original GimpChat banner.

_________________
Image
Be patient, English is not my language.


Top
 Post subject: Re: G'MIC Chalk It Up
PostPosted: Mon Aug 20, 2012 8:26 am  (#14) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Bonjour,

Version of the filter for GMIC Gimp update.
Correction for images with alpha channel + channel selection


Attachments:
gmic.zip [1.18 KiB]
Downloaded 103 times
Top
 Post subject: Re: G'MIC Chalk It Up
PostPosted: Mon Aug 20, 2012 8:36 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 726
Thanks!
One more thing. I have the feeling that by the method of edge detection and colors used, an interesting variant of this filter may be an effect of neon lights (including ability to modify Blur and glare) instead of chalk.
And get things like:
Image
Image

_________________
Image
Be patient, English is not my language.


Last edited by YAFU on Mon Aug 20, 2012 8:47 am, edited 1 time in total.

Top
 Post subject: Re: G'MIC Chalk It Up
PostPosted: Mon Aug 20, 2012 8:45 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
How do we use that update zip? Or can we just refresh our gmic and chalk it up will update to the latest version?


Top
 Post subject: Re: G'MIC Chalk It Up
PostPosted: Mon Aug 20, 2012 9:01 am  (#17) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
@2-ton
Extract and place the file gmic in the directory where other files .gmic are


@YAFU
If you have a method, a tutorial, I can add and create another filter :)


Top
 Post subject: Re: G'MIC Chalk It Up
PostPosted: Mon Aug 20, 2012 9:16 am  (#18) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
heh, I use mcgimp, which has gmic already in it, and have no idea where the gmic files are. They do not show up in my file finder.


Top
 Post subject: Re: G'MIC Chalk It Up
PostPosted: Mon Aug 20, 2012 9:18 am  (#19) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 726
samj wrote:
@YAFU
If you have a method, a tutorial, I can add and create another filter :)

It is not necessary that filter that I had requested, my mistake.
I was watching the tutorial:
http://justpaste.it/chalk_it_up
And Edge-Detect > Neon filter makes practically everything I wanted :)
Sorry for not having seen that before!

_________________
Image
Be patient, English is not my language.


Top
 Post subject: Re: G'MIC Chalk It Up
PostPosted: Mon Aug 20, 2012 9:30 am  (#20) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
@ 2-ton

If you have version 1.5.1.8 G'MIC for Gimp : viewtopic.php?f=9&t=4982&start=10#p62126
and there is nothing else to do


Top
Post new topic Reply to topic  [ 28 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group