LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 07-13-2011, 06:02 PM   #1
Dafydd
Member
 
Registered: Oct 2008
Posts: 315

Rep: Reputation: 23
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.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 07-13-2011, 06:11 PM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 13,490

Rep: Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803
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

Last edited by John VV; 07-13-2011 at 06:51 PM.
 
2 members found this post helpful.
Old 07-13-2011, 06:11 PM   #3
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,990

Rep: Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555
Code:
ls *.png | xargs -i mogrify -charcoal {}
 
Old 07-14-2011, 12:23 AM   #4
Dafydd
Member
 
Registered: Oct 2008
Posts: 315

Original Poster
Rep: Reputation: 23
Thanks guys for the information. This is enough to keep me up the rest of the night. Appreciate the help.
 
Old 07-14-2011, 12:32 AM   #5
John VV
Guru
 
Registered: Aug 2005
Posts: 13,490

Rep: Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803
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
 
1 members found this post helpful.
Old 07-16-2011, 12:31 AM   #6
Dafydd
Member
 
Registered: Oct 2008
Posts: 315

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by John VV View Post
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.
 
Old 07-16-2011, 01:01 AM   #7
John VV
Guru
 
Registered: Aug 2005
Posts: 13,490

Rep: Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803
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
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH connection from BASH script stops further BASH script commands tardis1 Linux - Newbie 3 12-06-2010 09:56 AM
Sketch Up evodawg Linux - Software 1 10-12-2009 05:09 AM
classic english comedy sketch bashyow General 3 07-12-2008 03:17 PM
Sketch an implementation of semaphores Evelyne Programming 2 11-01-2007 03:17 PM
Cant change size of pencil in Gimp WindowsBurner Linux - Software 4 11-11-2003 01:55 PM


All times are GMT -5. The time now is 12:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration