1
2
3
4
5<!DOCTYPE html>
6<html lang="en">
7<head>
8  <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" />
9    <title>ImageMagick: Command-line Tools: Animate</title>
10  <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
11  <meta name="application-name" content="ImageMagick"/>
12  <meta name="description" content="ImageMagick® is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, JPEG-2000, GIF, WebP, Postscript, PDF, and SVG. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves."/>
13  <meta name="application-url" content="http://www.imagemagick.org"/>
14  <meta name="generator" content="PHP"/>
15  <meta name="keywords" content="command-line, tools:, animate, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert"/>
16  <meta name="rating" content="GENERAL"/>
17  <meta name="robots" content="INDEX, FOLLOW"/>
18  <meta name="generator" content="ImageMagick Studio LLC"/>
19  <meta name="author" content="ImageMagick Studio LLC"/>
20  <meta name="revisit-after" content="2 DAYS"/>
21  <meta name="resource-type" content="document"/>
22  <meta name="copyright" content="Copyright (c) 1999-2015 ImageMagick Studio LLC"/>
23  <meta name="distribution" content="Global"/>
24  <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1"/>
25  <link rel="icon" href="/image/wand.png"/>
26  <link rel="shortcut icon" href="/image/wand.ico"/>
27  <link rel="stylesheet" href="/css/magick.php"/>
28</head>
29<body>
30<div class="main">
31<div class="magick-masthead">
32  <div class="container">
33    <script async="async" src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>    <ins class="adsbygoogle"
34         style="display:block"
35         data-ad-client="ca-pub-3129977114552745"
36         data-ad-slot="6345125851"
37         data-ad-format="auto"></ins>
38    <script>
39      (adsbygoogle = window.adsbygoogle || []).push({});
40    </script>
41    <nav class="magick-nav">
42      <a class="magick-nav-item " href="/index.php">Home</a>
43      <a class="magick-nav-item " href="binary-releases.php">Download</a>
44      <a class="magick-nav-item " href="command-line-tools.php">Tools</a>
45      <a class="magick-nav-item " href="command-line-processing.php">Command-line</a>
46      <a class="magick-nav-item " href="resources.php">Resources</a>
47      <a class="magick-nav-item " href="api.php">Develop</a>
48      <a class="magick-nav-item " href="search.php">Search</a>
49      <a class="magick-nav-item pull-right" href="http://www.imagemagick.org/discourse-server/">Community</a>
50    </nav>
51  </div>
52</div>
53<div class="container">
54<div class="magick-header">
55<p class="text-center"><a href="animate.php#usage">Example Usage</a> • <a href="animate.php#options">Option Summary</a></p>
56
57<p class="lead magick-description">Use the <code>animate</code> program to animate an image sequence on any X server.   See <a href="command-line-processing.php">Command Line Processing</a> for advice on how to structure your <code>animate</code> command or see below for example usages of the command.</p>
58
59<h2 class="magick-header"><a id="usage"></a>Example Usage</h2>
60
61<p>We list a few examples of the <code>animate</code> command here to illustrate its usefulness and ease of use.  To get started, lets animate an image sequence in the GIF format:</p>
62
63<pre>
64animate movie.gif
65</pre>
66
67<p>To animate a directory of JPEG images, use:</p>
68
69<pre>
70animate *.jpg
71</pre>
72
73<p>You can find additional examples of using <code>animate</code> in <a href="http://www.imagemagick.org/Usage/basics/#animate">Examples of ImageMagick Usage</a>.</p>
74
75
76<h2 class="magick-header"><a id="options"></a>Option Summary</h2>
77
78<p>The <code>animate</code> command recognizes these options.  Click on an option to get more details about how that option works.</p>
79
80<table class="table table-condensed table-striped">
81  <tbody>
82  <tr>
83    <th align="left">Option</th>
84    <th align="left">Description</th>
85  </tr>
86
87  <tr>
88    <td><a href="command-line-options.php#alpha">-alpha</a></td>
89    <td>on, activate, off, deactivate, set, opaque, copy",
90transparent, extract, background, or shape the alpha channel</td>
91  </tr>
92
93  <tr>
94    <td><a href="command-line-options.php#antialias">-antialias</a></td>
95    <td>remove pixel-aliasing</td>
96  </tr>
97
98  <tr>
99    <td><a href="command-line-options.php#authenticate">-authenticate <var>value</var></a></td>
100    <td>decrypt image with this password</td>
101  </tr>
102
103  <tr>
104    <td><a href="command-line-options.php#backdrop">-backdrop</a></td>
105    <td>background color</td>
106  </tr>
107
108  <tr>
109    <td><a href="command-line-options.php#background">-background <var>color</var></a></td>
110    <td>background color</td>
111  </tr>
112
113  <tr>
114    <td><a href="command-line-options.php#border">-border <var>geometry</var></a></td>
115    <td>surround image with a border of color</td>
116  </tr>
117
118  <tr>
119    <td><a href="command-line-options.php#bordercolor">-bordercolor <var>color</var></a></td>
120    <td>border color</td>
121  </tr>
122
123  <tr>
124    <td><a href="command-line-options.php#channel">-channel <var>type</var></a></td>
125    <td>apply option to select image channels</td>
126  </tr>
127
128  <tr>
129    <td><a href="command-line-options.php#clip">-clip</a></td>
130    <td>clip along the first path from the 8BIM profile</td>
131  </tr>
132
133  <tr>
134    <td><a href="command-line-options.php#clip-path">-clip-path <var>id</var></a></td>
135    <td>clip along a named path from the 8BIM profile</td>
136  </tr>
137
138  <tr>
139    <td><a href="command-line-options.php#coalesce">-coalesce</a></td>
140    <td>merge a sequence of images</td>
141  </tr>
142
143  <tr>
144    <td><a href="command-line-options.php#colormap">-colormap <var>type</var></a></td>
145    <td>Shared or Private</td>
146  </tr>
147
148  <tr>
149    <td><a href="command-line-options.php#colors">-colors <var>value</var></a></td>
150    <td>preferred number of colors in the image</td>
151  </tr>
152
153  <tr>
154    <td><a href="command-line-options.php#colorspace">-colorspace <var>type</var></a></td>
155    <td>set image colorspace</td>
156  </tr>
157
158  <tr>
159    <td><a href="command-line-options.php#comment">-comment <var>string</var></a></td>
160    <td>annotate image with comment</td>
161  </tr>
162
163  <tr>
164    <td><a href="command-line-options.php#compress">-compress <var>type</var></a></td>
165    <td>image compression type</td>
166  </tr>
167
168  <tr>
169    <td><a href="command-line-options.php#contrast">-contrast</a></td>
170    <td>enhance or reduce the image contrast</td>
171  </tr>
172
173  <tr>
174    <td><a href="command-line-options.php#crop">-crop <var>geometry</var></a></td>
175    <td>preferred size and location of the cropped image</td>
176  </tr>
177
178  <tr>
179    <td><a href="command-line-options.php#debug">-debug <var>events</var></a></td>
180    <td>animate copious debugging information</td>
181  </tr>
182
183  <tr>
184    <td><a href="command-line-options.php#decipher">-decipher <var>filename</var></a></td>
185    <td>convert cipher pixels to plain</td>
186  </tr>
187
188  <tr>
189    <td><a href="command-line-options.php#define">-define <var>format:option</var></a></td>
190    <td>define one or more image format options</td>
191  </tr>
192
193  <tr>
194    <td><a href="command-line-options.php#delay">-delay <var>value</var></a></td>
195    <td>animate the next image after pausing</td>
196  </tr>
197
198  <tr>
199    <td><a href="command-line-options.php#density">-density <var>geometry</var></a></td>
200    <td>horizontal and vertical density of the image</td>
201  </tr>
202
203  <tr>
204    <td><a href="command-line-options.php#depth">-depth <var>value</var></a></td>
205    <td>image depth</td>
206  </tr>
207
208  <tr>
209    <td><a href="command-line-options.php#despeckle">-despeckle</a></td>
210    <td>reduce the speckles within an image</td>
211  </tr>
212
213  <tr>
214    <td><a href="command-line-options.php#animate">-display <var>server</var></a></td>
215    <td>get image or font from this X server</td>
216  </tr>
217
218  <tr>
219    <td><a href="command-line-options.php#dispose">-dispose <var>method</var></a></td>
220    <td>layer disposal method</td>
221  </tr>
222
223  <tr>
224    <td><a href="command-line-options.php#dither">-dither  <var>method</var></a></td>
225    <td>apply error diffusion to image</td>
226  </tr>
227
228  <tr>
229    <td><a href="command-line-options.php#edge">-edge <var>radius</var></a></td>
230    <td>apply a filter to detect edges in the image</td>
231  </tr>
232
233  <tr>
234    <td><a href="command-line-options.php#endian">-endian <var>type</var></a></td>
235    <td>endianness (MSB or LSB) of the image</td>
236  </tr>
237
238  <tr>
239    <td><a href="command-line-options.php#enhance">-enhance</a></td>
240    <td>apply a digital filter to enhance a noisy image</td>
241  </tr>
242
243  <tr>
244    <td><a href="command-line-options.php#extract">-extract <var>geometry</var></a></td>
245    <td>extract area from image</td>
246  </tr>
247
248  <tr>
249    <td><a href="command-line-options.php#filter">-filter <var>type</var></a></td>
250    <td>use this filter when resizing an image</td>
251  </tr>
252
253  <tr>
254    <td><a href="command-line-options.php#flatten">-flatten</a></td>
255    <td>flatten a sequence of images</td>
256  </tr>
257
258  <tr>
259    <td><a href="command-line-options.php#flip">-flip</a></td>
260    <td>flip image in the vertical direction</td>
261  </tr>
262
263  <tr>
264    <td><a href="command-line-options.php#flop">-flop</a></td>
265    <td>flop image in the horizontal direction</td>
266  </tr>
267
268  <tr>
269    <td><a href="command-line-options.php#frame">-frame <var>geometry</var></a></td>
270    <td>surround image with an ornamental border</td>
271  </tr>
272
273  <tr>
274    <td><a href="command-line-options.php#gamma">-gamma <var>value</var></a></td>
275    <td>level of gamma correction</td>
276  </tr>
277
278  <tr>
279    <td><a href="command-line-options.php#geometry">-geometry <var>geometry</var></a></td>
280    <td>preferred size or location of the image</td>
281  </tr>
282
283  <tr>
284    <td><a href="command-line-options.php#gravity">-gravity <var>geometry</var></a></td>
285    <td>horizontal and vertical backdrop placement</td>
286  </tr>
287
288  <tr>
289    <td><a href="command-line-options.php#help">-help</a></td>
290    <td>print program options</td>
291  </tr>
292
293  <tr>
294    <td><a href="command-line-options.php#identify">-identify</a></td>
295    <td>identify the format and characteristics of the image</td>
296  </tr>
297
298  <tr>
299    <td><a href="command-line-options.php#immutable">-immutable <var>type</var></a></td>
300    <td>prohibit image edits</td>
301  </tr>
302
303  <tr>
304    <td><a href="command-line-options.php#interlace">-interlace <var>type</var></a></td>
305    <td>type of image interlacing scheme</td>
306  </tr>
307
308  <tr>
309    <td><a href="command-line-options.php#interpolate">-interpolate <var>method</var></a></td>
310    <td>pixel color interpolation method</td>
311  </tr>
312
313  <tr>
314    <td><a href="command-line-options.php#label">-label <var>name</var></a></td>
315    <td>assign a label to an image</td>
316  </tr>
317
318  <tr>
319    <td><a href="command-line-options.php#limit">-limit <var>type value</var></a></td>
320    <td>pixel cache resource limit</td>
321  </tr>
322
323  <tr>
324    <td><a href="command-line-options.php#log">-log <var>format</var></a></td>
325    <td>format of debugging information</td>
326  </tr>
327
328  <tr>
329    <td><a href="command-line-options.php#map">-map <var>filename</var></a></td>
330    <td>transform image colors to match this set of colors</td>
331  </tr>
332
333  <tr>
334    <td><a href="command-line-options.php#mattecolor">-mattecolor <var>color</var></a></td>
335    <td>frame color</td>
336  </tr>
337
338  <tr>
339    <td><a href="command-line-options.php#monitor">-monitor</a></td>
340    <td>monitor progress</td>
341  </tr>
342
343  <tr>
344    <td><a href="command-line-options.php#monochrome">-monochrome</a></td>
345    <td>transform image to black and white</td>
346  </tr>
347
348  <tr>
349    <td><a href="command-line-options.php#negate">-negate</a></td>
350    <td>replace each pixel with its complementary color </td>
351  </tr>
352
353  <tr>
354    <td><a href="command-line-options.php#page">-page <var>geometry</var></a></td>
355    <td>size and location of an image canvas (setting)</td>
356  </tr>
357
358  <tr>
359    <td><a href="command-line-options.php#profile">-profile <var>filename</var></a></td>
360    <td>add, delete, or apply an image profile</td>
361  </tr>
362
363  <tr>
364    <td><a href="command-line-options.php#quantize">-quantize <var>colorspace</var></a></td>
365    <td>reduce image colors in this colorspace</td>
366  </tr>
367
368  <tr>
369    <td><a href="command-line-options.php#quiet">-quiet</a></td>
370    <td>suppress all warning messages</td>
371  </tr>
372
373  <tr>
374    <td><a href="command-line-options.php#raise">-raise <var>value</var></a></td>
375    <td>lighten/darken image edges to create a 3-D effect</td>
376  </tr>
377
378  <tr>
379    <td><a href="command-line-options.php#regard-warnings">-regard-warnings</a></td>
380    <td>pay attention to warning messages.</td>
381  </tr>
382
383  <tr>
384    <td><a href="command-line-options.php#remote">-remote <var>command</var></a></td>
385    <td>execute a command in an remote animate process</td>
386  </tr>
387
388  <tr>
389    <td><a href="command-line-options.php#resample">-resample <var>geometry</var></a></td>
390    <td>change the resolution of an image</td>
391  </tr>
392
393  <tr>
394    <td><a href="command-line-options.php#resize">-resize <var>geometry</var></a></td>
395    <td>resize the image</td>
396  </tr>
397
398  <tr>
399    <td><a href="command-line-options.php#respect-parentheses">-respect-parentheses</a></td>
400    <td>settings remain in effect until parenthesis boundary.</td>
401  </tr>
402
403  <tr>
404    <td><a href="command-line-options.php#roll">-roll <var>geometry</var></a></td>
405    <td>roll an image vertically or horizontally</td>
406  </tr>
407
408  <tr>
409    <td><a href="command-line-options.php#rotate">-rotate <var>degrees</var></a></td>
410    <td>apply Paeth rotation to the image</td>
411  </tr>
412
413  <tr>
414    <td><a href="command-line-options.php#sample">-sample <var>geometry</var></a></td>
415    <td>scale image with pixel sampling</td>
416  </tr>
417
418  <tr>
419    <td><a href="command-line-options.php#sampling-factor">-sampling-factor <var>geometry</var></a></td>
420    <td>horizontal and vertical sampling factor</td>
421  </tr>
422
423  <tr>
424    <td><a href="command-line-options.php#scene">-scene <var>value</var></a></td>
425    <td>image scene number</td>
426  </tr>
427
428  <tr>
429    <td><a href="command-line-options.php#segment">-segment <var>values</var></a></td>
430    <td>segment an image</td>
431  </tr>
432
433  <tr>
434    <td><a href="command-line-options.php#seed">-seed <var>value</var></a></td>
435    <td>seed a new sequence of pseudo-random numbers</td>
436  </tr>
437
438  <tr>
439    <td><a href="command-line-options.php#set">-set <var>attribute value</var></a></td>
440    <td>set an image attribute</td>
441  </tr>
442
443  <tr>
444    <td><a href="command-line-options.php#sharpen">-sharpen <var>geometry</var></a></td>
445    <td>sharpen the image</td>
446  </tr>
447
448  <tr>
449    <td><a href="command-line-options.php#size">-size <var>geometry</var></a></td>
450    <td>width and height of image</td>
451  </tr>
452
453  <tr>
454    <td><a href="command-line-options.php#strip">-strip</a></td>
455    <td>strip image of all profiles and comments</td>
456  </tr>
457
458  <tr>
459    <td><a href="command-line-options.php#thumbnail">-thumbnail <var>geometry</var></a></td>
460    <td>create a thumbnail of the image</td>
461  </tr>
462
463  <tr>
464    <td><a href="command-line-options.php#transparent-color">-transparent-color <var>color</var></a></td>
465    <td>transparent color</td>
466  </tr>
467
468  <tr>
469    <td><a href="command-line-options.php#trim">-trim</a></td>
470    <td>trim image edges</td>
471  </tr>
472
473  <tr>
474    <td><a href="command-line-options.php#update">-update <var>seconds</var></a></td>
475    <td>detect when image file is modified and reanimate</td>
476  </tr>
477
478  <tr>
479    <td><a href="command-line-options.php#verbose">-verbose</a></td>
480    <td>print detailed information about the image</td>
481  </tr>
482
483  <tr>
484    <td><a href="command-line-options.php#version">-version</a></td>
485    <td>print version information</td>
486  </tr>
487
488  <tr>
489    <td><a href="command-line-options.php#virtual-pixel">-virtual-pixel <var>method</var></a></td>
490    <td>access method for pixels outside the boundaries of the image</td>
491  </tr>
492
493  <tr>
494    <td><a href="command-line-options.php#visual">-visual</a></td>
495    <td>animate image using this visual type</td>
496  </tr>
497
498  <tr>
499    <td><a href="command-line-options.php#write">-window <var>id</var></a></td>
500    <td>animate images to background of this window</td>
501  </tr>
502
503  <tr>
504    <td><a href="command-line-options.php#write">-window-group <var>id</var></a></td>
505    <td>exit program when this window id is destroyed</td>
506  </tr>
507
508  </tbody>
509</table>
510</div>
511  <footer class="magick-footer">
512    <p><a href="support.php">Donate</a> •
513     <a href="sitemap.php">Sitemap</a> •
514    <a href="links.php">Related</a> •
515    <a href="architecture.php">Architecture</a>
516</p>
517    <p><a href="animate.php#">Back to top</a> •
518    <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x89AB63D48277377A">Public Key</a> •
519    <a href="contact.php">Contact Us</a></p>
520        <p><small>©  1999-2016 ImageMagick Studio LLC</small></p>
521  </footer>
522</div><!-- /.container -->
523
524  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
525  <script src="http://nextgen.imagemagick.org/js/magick.php"></script>
526</div>
527</body>
528</html>
529