Search found 11 matches

by Leekao
2017-02-17T05:55:32-07:00
Forum: Fred's Scripts
Topic: Creating a cartoon effect
Replies: 24
Views: 55351

Re: Creating a cartoon effect

fmw42 wrote:
2017-02-16T14:05:09-07:00
try lowering the smoothing -S to get more detail

toon -m 1 -g 5 -b 5 -S 1 -s 200 pNgAaeB.jpg pNgAaeB_toon_m1_g5_b5_S1_s200.jpg
It's really nice but the faces still distorted/
Image
by Leekao
2017-02-16T10:49:13-07:00
Forum: Fred's Scripts
Topic: Creating a cartoon effect
Replies: 24
Views: 55351

Re: Creating a cartoon effect

This is what I get: Input: http://www.fmwconcepts.com/misc_tests/cartoon/pNgAaeB.jpg toon -m 1 -g 5 -b 5 -S 10 -s 200 pNgAaeB.jpg pNgAaeB_toon_m1_g5_b5_S10_s200.jpg \ http://www.fmwconcepts.com/misc_tests/cartoon/pNgAaeB_toon_m1_g5_b5_S10_s200.jpg Wow, that's pretty sweet, I'm going to try it. The ...
by Leekao
2017-02-16T10:02:33-07:00
Forum: Fred's Scripts
Topic: Creating a cartoon effect
Replies: 24
Views: 55351

Re: Creating a cartoon effect

... 30fps and I'm running all the frames through imagemagick to make em cartoonish and then playing them in 30fps ... So, you want to capture, process and display video? Ffmpeg or Avisynth would seem more logical choices for tools. Yeah, I guess that would be reasonable, but I do not know how to ap...
by Leekao
2017-02-15T17:08:25-07:00
Forum: Fred's Scripts
Topic: Creating a cartoon effect
Replies: 24
Views: 55351

Re: Creating a cartoon effect

This is what I get: Input: http://www.fmwconcepts.com/misc_tests/cartoon/pNgAaeB.jpg toon -m 1 -g 5 -b 5 -S 10 -s 200 pNgAaeB.jpg pNgAaeB_toon_m1_g5_b5_S10_s200.jpg \ http://www.fmwconcepts.com/misc_tests/cartoon/pNgAaeB_toon_m1_g5_b5_S10_s200.jpg Wow, that's pretty sweet, I'm going to try it.
by Leekao
2017-02-15T17:06:16-07:00
Forum: Fred's Scripts
Topic: Creating a cartoon effect
Replies: 24
Views: 55351

Re: Creating a cartoon effect

And just in case you're wondering what I'm doing, I'd love to share it, just ignore this post if you don't care about it. What I did is I took a tablet, put a nice wooden picture frame around it, hooked it up to a webcam and a raspberry pie and the tablet is playing what the camera recorded with an ...
by Leekao
2017-02-15T16:52:41-07:00
Forum: Fred's Scripts
Topic: Creating a cartoon effect
Replies: 24
Views: 55351

Re: Creating a cartoon effect

You do not show the input image. It works best for slowly varying images, such as a face. See my toon script for examples. the input file is: http://i.imgur.com/pNgAaeB.jpg (it's me, sitting in my living room, hello there!) I have seen your examples (the commands from my original post are the resul...
by Leekao
2017-02-15T16:37:03-07:00
Forum: Fred's Scripts
Topic: Creating a cartoon effect
Replies: 24
Views: 55351

Re: Creating a cartoon effect

Are you on a very old version of IM. -morphology has been around for a very long time now. What is your IM version? Try changing my single quotes to double quotes. I think Windows does not like single quotes. 'Sobel:>' ---> "Sobel:>" As I am not a Windows user, perhaps you can refer to http://www.i...
by Leekao
2017-02-15T15:06:11-07:00
Forum: Fred's Scripts
Topic: Creating a cartoon effect
Replies: 24
Views: 55351

Re: Creating a cartoon effect

doesn't work on my WIN10 with IM7.0.4-5 Q16 x64 You need to convert my unix syntax to windows and to use magick rather than convert. Try convert input.jpg ^ ( -clone 0 -blur 0x5 ) ^ ( -clone 0 -fill black -colorize 100 ) ^ ( -clone 0 -define convolve:scale='!' ^ -define morphology:compose=Lighten ^...
by Leekao
2017-02-15T14:12:05-07:00
Forum: Fred's Scripts
Topic: Creating a cartoon effect
Replies: 24
Views: 55351

Re: Creating a cartoon effect

Looking at the OP script, in "-compose over -compose multiply" you set this setting, then change it, so the "-compose over" is redundant. You can combine the three converts into one, with no intermediate files, which makes it quicker. Windows BAT syntax: %IM%convert ^ %SRC% ^ +repage -depth 8 -sele...
by Leekao
2017-02-15T14:10:02-07:00
Forum: Fred's Scripts
Topic: Creating a cartoon effect
Replies: 24
Views: 55351

Re: Creating a cartoon effect

See my toon script. It is simpler and one command line. Unix syntax: convert input.jpg \ \( -clone 0 -blur 0x5 \) \ \( -clone 0 -fill black -colorize 100 \) \ \( -clone 0 -define convolve:scale='!' \ -define morphology:compose=Lighten \ -morphology Convolve 'Sobel:>' \ -negate -evaluate pow 5 -nega...
by Leekao
2017-02-15T11:48:00-07:00
Forum: Fred's Scripts
Topic: Creating a cartoon effect
Replies: 24
Views: 55351

Creating a cartoon effect

I'm trying to create a cartoonish effect using convert, after some digging online I found this helpful script (http://www.fmwconcepts.com/imagemagick/cartoon/) which creates the following commands (my infile is '/img/14.jpg'): convert -quiet /img/14.jpg +repage -depth 8 -selective-blur 0x5+10% /img/...