[magick-users] Thumbnails from first image of an avi
Anthony Thyssen
anthony at griffith.edu.au
Sat Aug 25 23:02:36 PDT 2007
Jim Kleckner on wrote...
| I've tried a variety of options for "convert" to extract just the first
| frame of an avi as a thumbnail:
| -scene 0-0
| -thumbnail <geo>
| -flatten
|
| The -flatten works, but scans through the whole avi file as an image
| sequence.
|
| Is there a simple way to just extract that first frame?
|
Yes.. if you read in the whole sequence you can delete all frames but
the first using...
-delete 1--1
That is delete the second image (index 1) to the last image (index -1)
the other is only read the first frame by adding '[0]' into the AVI
filename
convert movie.avi'[0]' .... first_frame.png
Note the quotes is needed for UNIX and Linux basied machines to prevent
the shell interperting the square brackets itself, rather than passing
them as is to the image magick command.
Anthony Thyssen ( System Programmer ) <A.Thyssen at griffith.edu.au>
-----------------------------------------------------------------------------
Monday is an awful way to spend 1/7th of your life!
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
More information about the Magick-users
mailing list