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 )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
         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/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to