PhotoComix wrote:
GnuTux wrote:
maybe Graechan would be willing to add this effect to the script, as an option.

bit difficult :
that cool effect you all get may be difficult to hardcode, because it will change much depending on image size (with same setting a very dramatic and strong effect on relatively little images, MUCH softer if very large .
So i guess or the script should call GMIC> anisotropic mode in iterative mode , or should be advised that also the image size will influence much the effect
Well, I suppose that could be said for lots of different filters. Some filters just work better with certain kinds of images, or certain size images, than others. For proof of concept, I was able to implement the effect with just a few lines of code added to the script. The effect looks good, at least with the photos I tested out. There really isn't many parameters to change in the filter and those options could be easily added, if needed.
;====================================================
; Add Effect to Pencil Script (GnuTux)
;=====================================================
(gimp-layer-set-mode lineLayer NORMAL-MODE)
(gimp-layer-set-opacity lineLayer 100)
(gimp-image-raise-layer image shadeLayer)
(gimp-layer-set-mode shadeLayer DIFFERENCE-MODE)
(set! lineLayer (car (gimp-image-merge-down image shadeLayer EXPAND-AS-NECESSARY)))
(gimp-colorize lineLayer 187 70 -15) ; +7 to blue, +20 sat, -15 lightness
; Call GMIC
(plug-in-gmic
1 ; Mode: interacive=0, non-interactive=1
image ; Input Image
lineLayer ; Inout Drawable (not used)
1 ; Input layers mode, when non-interactive (see below)
; 0=none, 1=active, 2=all, 3=active & below
; 4=active & above, 5=all visibles, 6=all invisibles
; 7=all visibles (decr.), 8=all invisibles (decr.), 9=all (decr.)
; GMIC Command String (Run GIMP from terminal set GMIC to verbose to see command string)
(string-append
"-v - " ; Required to work properly in Script-fu
"-gimp_dreamsmooth " ; GMIC filter name
"2,1,1,0.8,0,0.8,0" ; GMIC filter arguments
)
);end GMIC call
;
;=========================================================
;
Classic Car

Golden Nugget
