LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 05:02 PM   #1
Dafydd
Member
 
Registered: Oct 2008
Posts: 299

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, 05:11 PM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 12,808

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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 05:51 PM.
 
2 members found this post helpful.
Old 07-13-2011, 05:11 PM   #3
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,616

Rep: Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415
Code:
ls *.png | xargs -i mogrify -charcoal {}
 
Old 07-13-2011, 11:23 PM   #4
Dafydd
Member
 
Registered: Oct 2008
Posts: 299

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-13-2011, 11:32 PM   #5
John VV
Guru
 
Registered: Aug 2005
Posts: 12,808

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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-15-2011, 11:31 PM   #6
Dafydd
Member
 
Registered: Oct 2008
Posts: 299

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, 12:01 AM   #7
John VV
Guru
 
Registered: Aug 2005
Posts: 12,808

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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 08:56 AM
Sketch Up evodawg Linux - Software 1 10-12-2009 04:09 AM
classic english comedy sketch bashyow General 3 07-12-2008 02:17 PM
Sketch an implementation of semaphores Evelyne Programming 2 11-01-2007 02:17 PM
Cant change size of pencil in Gimp WindowsBurner Linux - Software 4 11-11-2003 12:55 PM


All times are GMT -5. The time now is 09:10 AM.

Main Menu
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