Convert images to comic...
Posted: 2010-02-13T13:26:00-07:00
Hi,
I'm working on a script for Imagemagick, in order to convert photos to comic-images. Up to now I have created the following script:
Does anyone of you have suggestions to improve this script?
Best regards
Christopher
I'm working on a script for Imagemagick, in order to convert photos to comic-images. Up to now I have created the following script:
I'm not quite satisfied with the result of this script...for x in *.png; do
convert -normalize -posterize 8 -despeckle -despeckle -despeckle -blur 1 -paint 2 $x $(basename $x .png)_comic.png
convert -posterize 9 -blur 18 -blur 4 -paint 3 -adaptive-sharpen 3 -edge 1 -negate -evaluate Multiply 1.5 -fx '(r+g+b)/3' +contrast -charcoal 1.1 -monochrome $x $(basename $x .png)_umriss.png
convert -transparent "#ffffff" -channel Alpha -evaluate Divide 1.5 -despeckle -paint 2 $(basename $x .png)_umriss.png $(basename $x .png)_umriss_trans.png
convert -paint 2 $(basename $x .png)_comic.png $(basename $x .png)_zusammen.png
composite $(basename $x .png)_umriss_trans.png $(basename $x .png)_zusammen.png $(basename $x .png)_final.png
rm -v *_comic.png *_umriss.png *_umriss_trans.png *_zusammen.png
done
Does anyone of you have suggestions to improve this script?
Best regards
Christopher