|
EDIT i was planning to make 1 filter i ended up with 5 well once you got how they work you may even don't need anymore it is very easy doing the same manually
But was not easy found how to add back color for most of them: it is not obvious why but i may assure that filters that create solid black shadows and outline (as Stamp , Charcoal and Dither) can't just recover the color for the original...well they may but results would look awful!!
the trick is simplify the colors from the original the same solid black that would make look awful the composition merge nicely with posterized (or quantized, index) colors, even better if the colors may be smoothed and faded
So here i experimented a similar trick,but with some variants on 5 the Gmic BW filters, i found the results encouraging i think there is still a lot of space for improvements
Some will require patience (as found out how to eliminate some undesirable options from Charcoal without breaking it) others may just come from your suggestions
well have fun...Maybe are not perfect but i believe all 5 filters may be quite fun to use
#################################################################### The cheaper trick to cartoonize a image but with a added twist :
The filter create a duplicate and apply "threshold " ,convert the image to fully black and white pixels, automatically or with user input the twist is recover the color from the original but as they are the effect would be horrible, they must be simplified
So the original is quantized (similar to posterized )and optionally smoothed to give color more adapt
The final image combine the black pixel from threshold with the color from the original, quantized and (optionally smoothed )
##############################################################
#@gimp Cheap Cartoonist : gimp_colorstamp, gimp_colorstamp_preview(0) #@gimp : note = note ("BW module,analog to "Stamp"filter") #@gimp : sep = separator() #@gimp : Auto-threshold = bool(1) #@gimp : Threshold = int(50,0,100) #@gimp : sep = separator() #@gimp : note = note ("Color module") #@gimp : Activate Color module= bool(1) #@gimp : Quantize Colors =int(20,2,255) #@gimp : Color Smoothness = float(2,0,20)
#@gimp : sep = separator(), Preview type = choice("Full","Forward horizontal","Forward vertical","Backward horizontal","Backward vertical") #@gimp : sep = separator(), note = note("<small>Authors : <i>PhotoComix , Antaron, Mahvin, David Tschumperlé</i>. Latest update : 2011/12/12.</small>")
gimp_colorstamp :
-repeat @# -l[$>] -split_opacity -l[0]
--norm -if $1 -otsu[-1] 256 -else -t[-1] $2% -endif -n[-1] 0,255 -apply_curve[-1] 1,0,0,101,33,170,229,255,255 -if {$3==1} -quantize[-2] $4 -to_rgb -blur_xy[-2] $5,$5 -gimp_compose_darken 1,0 -endif -endl -a c -endl -done
gimp_colorstamp_preview : -gimp_split_preview "-gimp_colorstamp ${1--2}",$-1
###########################################################
just a wip i am trying to make a ...less cheap version using Charcoal instead then Stamp, but i have problem to simplify the Charcoal code removing all that unnecessary options (unnecessary for the color filter i wish ) that would confuse the interface and seldom give good results ...but anyway here a wip version
#####################################################################
#@gimp Flying Cartoonist 2: gimp_flyingcartoonist2, gimp_flyingcartoonist2_preview(0) #@gimp : Granularity = int(65,0,800) #@gimp : Lowlights crossover point = int(70,0,255) #@gimp : Highlights crossover point = int(170,0,255) #@gimp : Boost contrast = bool(0) #@gimp : Resize image for optimum effect = bool(1) #@gimp : Add chalk highlights = bool(0) #@gimp : Minimal highlights = int(50,0,255) #@gimp : Maximal highlights = int(70,0,255) #@gimp : Invert background/foreground = bool(0) #@gimp : Quantize Colors = float (20,2,255) #@gimp : Color Smoothness = float (2,0.5,30) #@gimp : sep = separator(), Preview type = choice("Full","Forward horizontal","Forward vertical","Backward horizontal","Backward vertical") #@gimp : sep = separator(), note = note("<small>Author : <i>David Tschumperlé</i>. Latest update : <i>2011/03/17</i>.</small>") #@gimp : note = note("<small>Inspired from the Charcoal script by <i>micomicon</i> :</small>") #@gimp : link = link("http://registry.gimp.org/node/25078") gimp_flyingcartoonist2 : -repeat @# -l[$>] -split_opacity -l[0] --gimp_charcoal $1,$2,$3,$4,$5,$6,$7,$8,255,255,255,0,0,0,$9 -quantize[-2] $10 -to_rgb -blur_xy[-1] 0.8,0.8 -blur_xy[-2] $11,$11 -gimp_compose_colordoping 1,0 -endl -a c -endl -done
gimp_flyingcartoonist2_preview : -gimp_split_preview "-gimp_flyingcartoonist2 ${1--2}",$-1
#################################################################
_________________ My 3D Gallery on Deviantart http://photocomix2.deviantart.com/ Main gallery http://www.flickriver.com/photos/photocomix-mandala/ Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Mrs Wilbress
Last edited by PhotoComix on Mon Dec 12, 2011 9:38 pm, edited 3 times in total.
|