Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
643 views
in Technique[技术] by (71.8m points)

imagemagick - Turning photo into cartoon using PHP

Most probably using ImageMagick - how to turn photo into "cartoon"? Here's what I mean:

(not sure, that step 2 is necessary).

Thanks!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

A question asked yesterday shows some ImageMagick approaches to get to step 2.

As for step 3, there is a ImageMagick-based application named G'Mic that provides some advanced multi-step filters. The gallery shows some results that come close. However, it is in C++ so you'll probably need to compile it on your system.

Also, Googling for Imagemagick Cartoonify yields some example scripts that are worth checking out.

Also, make sure you dig into the ImageMagick examples page, one of the greatest IM resources around.

That said, I doubt whether it is possible to build a IM-based solution that works as well as the cartoonifier you show. IM is hugely powerful, but may not have the necessary degree of detailed control, individual programming and vectorization functions. But the basic functionality is possible.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...