LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   pencil sketch with imagemagic using bash script (https://www.linuxquestions.org/questions/programming-9/pencil-sketch-with-imagemagic-using-bash-script-891579/)

Dafydd 07-13-2011 05:02 PM

pencil sketch with imagemagic using bash script
 
I may be using the wrong words to search but I'm not finding what I want.

I would like to take a 10 sec video, 300 frames, convert it to individual frames convert them to line drawings and then reassemble them into an animated GIF.

Both 'gimp' and 'mplayer' will do to make the frames.

Is there already in existence a script file using imagemagic that will convert the pictures to line drawings without color? Or maybe several scripts that can be put into a step through 'bash' script.

John VV 07-13-2011 05:11 PM

it might be easier to use Gmic
that is already built in
http://gmic.sourceforge.net/gimp.shtml

and instead of a 8 bit indexed gif you could output a mpng or ogg
examples
http://gmic.sourceforge.net/gallery.shtml
http://gmic.sourceforge.net/img/gallery_000092.jpg
http://gmic.sourceforge.net/img/gallery_000095.jpg

dugan 07-13-2011 05:11 PM

Code:

ls *.png | xargs -i mogrify -charcoal {}

Dafydd 07-13-2011 11:23 PM

Thanks guys for the information. This is enough to keep me up the rest of the night. Appreciate the help.

John VV 07-13-2011 11:32 PM

if you look at gmic the "help page is 140.6 K in size
Code:

gmic --help > gmic-help
gedit gmic-help

and is well documented

Dafydd 07-15-2011 11:31 PM

Quote:

Originally Posted by John VV (Post 4414454)
if you look at gmic the "help page is 140.6 K in size
Code:

gmic --help > gmic-help
gedit gmic-help

and is well documented

Thanks and UNCLE. A 57 page help file. Def a print out and a big class of ice tea.

John VV 07-16-2011 12:01 AM

it is a big help page
but G'mic could replace imagemagick , it has for me it even replaces IM's "display" function

it works in 32bit floating-point so 8,16,and 32 bit images can be worked on


All times are GMT -5. The time now is 08:45 AM.