>K M animate: ImageMagick - Image Processing and Display PackageJ R < W<8 
B

 
  &
>NAME+
>

&animate - animate a sequence of images
  &
>Contents+
>



Synopsis

Description

Examples

Options

!Mouse Buttons

"Command Widget

)Keyboard Accelerators

X Resources

Environment

Copyright

#Acknowledgement

Authors


  &
>Synopsis+
>



danimate [ options ...] file [ [(options ...] file ...]
 


  &
>Description+
>



QAnimate displays a sequence of images on any workstation displayXrunning an X server. animate first determines the hardware capabilitiesFof the workstation. If the number of unique colors in an image is lessOthan or equal to the number the workstation can support, the image is displayedLin an X window. Otherwise the number of colors in the image is first reducedHto match the color resolution of the workstation before it is displayed.

HThis means that a continuous-tone 24 bits-per-pixel image can display onGa 8 bit pseudo-color device or monochrome device. In most instances theOreduced color image closely resembles the original. Alternatively, a monochromeQor pseudo-color image sequence can display on a continuous-tone 24 bits-per-pixeldevice.

GTo help prevent color flashing on X server visuals that have colormaps,animateJcreates a single colormap from the image sequence. This can be rather timeHconsuming. You can speed this operation up by reducing the colors in theQimage before you "animate" them. Use mogrify to color reduce theXimages to a single colormap. See mogrify(1) for details. Alternatively,Kyou can use a Standard Colormap; or a static, direct, or true color visual.[You can define a Standard Colormap with xstdcmap. See xstdcmap(1)Hfor details. This method is recommended for colormapped X server because4it eliminates the need to compute a global colormap.



+Back to Contents  

  &
>Examples+
>



.To animate a set of images of a cockatoo, use:
 


    animate cockatoo.*


FTo animate a cockatoo image sequence while using the Standard Colormapbest, use:
 


    xstdcmap -best     animate -map best cockatoo.*


JTo animate an image of a cockatoo without a border centered on a backdrop,use:
 


-    animate +borderwidth -backdrop cockatoo.*



+Back to Contents  

  &
>Options+
>



3For a more detailed description of each option, see7ImageMagick(1).
 
 !

.[ -authenticate <string>+

decrypt image with this password
 !

.R -backdrop <color>+

display the image centered on a backdrop.
 !

.V -background <color>+

the background color
 !

.X -bordercolor <color>+

the border color
 !

.( -borderwidth <geometry>+

the border width
 !

.P -cache <threshold>+

megabytes of memory available to the pixel cache
 !

. -chop <width>x<height>{+-}<x>{+-}<y>{%}+

remove pixels from the interior of an image
 !

.Q -colormap <type>+

define the colormap type
 !

.N -colors <value>+

preferred number of colors in the image
 !

.V -colorspace <value>+

the type of colorspace
 !

. -crop <width>x<height>{+-}<x>{+-}<y>{%}+

preferred size and location of the cropped image
 !

. -debug <events>+

enable debug printout
 !

.[ -delay <1/100ths of a second>+

display the next image after pausing
 !

._ -density <width>x<height>+

vertical and horizontal resolution in pixels of the image
 !

.L -depth <value>+

depth of the image
 !

.` -display <host:display[.screen]>+

specifies the X server to contact
 !

.Q -dispose <method>+

GIF disposal method
 !

.9 -dither+

apply Floyd/Steinberg error diffusion to the image
 !

.I -font <name>+

use this font when annotating the image with text
 !

.V -foreground <color>+

define the foreground color
 !

.L -gamma <value>+

level of gamma correction
 !

. -geometry <width>x<height>{+-}<x>{+-}<y>{%}{@} {!}{<}{>}+

preferred size and location of the Image window.
 !

. -help+

print usage instructions
 !

.] -iconGeometry <geometry>+

specify the icon geometry
 !

. -iconic+

iconic animation
 !

.S -interlace <type>+

the type of interlacing scheme
 !

.Y -limit <type> <value>+

Disk, Map, or Memory resource limit
 !

.G -map <type>+
y

0display image using this type.
 !

.7 -matte+

store matte channel if the image has one
 !

.V -mattecolor <color>+

specify the color to be used with the -frame option
 !

. -monochrome+

transform the image to black and white
 !

. -name+

name an image
 !

.5 -noop+

NOOP (no option)
 !

.N -pause <seconds>+

pause between animation loops [animate]
 !

.9 -remote+

perform a remote operation
 !

.x -rotate <degrees>{<}{>}+

apply Paeth image rotation to the image
 !

. -sampling-factor <horizontal_factor>x<vertical_factor>+

sampling factors used by JPEG or MPEG-2 encoder and YUV decoder/encoder.
 !

.T -scenes <value-value>+

range of image scene numbers to read
 !

.G -shared-memory+

use shared memory
 !

.p -size <width>x<height>{+offset}+

width and height of the image
 !

.S -text-font <name>+

font for writing fixed-width text
 !

.M -title <string>+

assign title to displayed image [animate, display, montage]
 !

.T -treedepth <value>+

tree depth for the color reduction algorithm
 !

.5 -trim+

trim an image
 !

.; -verbose+

print detailed information about the image
 !

.; -version+

print ImageMagick version string
 !

.M -visual <type>+

animate images using this X visual type
 !

.K -window <id>+

make image the background of a window


3For a more detailed description of each option, see7ImageMagick(1).
 


JAny option you specify on the command line remains in effect for the groupJof images following it, until the group is terminated by the appearance ofVany option or -noop. For example, to animate three images, the firstFwith 32 colors, the second with an unlimited number of colors, and thethird with only 16 colors, use:
 


I     animate -colors 32 cockatoo.1 -noop cockatoo.2 -colors 16 cockatoo.3


VAnimate options can appear on the command line or in your X resourcesOfile. See X(1). Options on the command line supersede values specifiedin your X resources file.K

Image filenames may appear in any order on the command line if the imageBformat is MIFF (refer to miff(5) and thescene keywordIis specified in the image. Otherwise the images will display in the order they appear on the command line.



+Back to Contents  

  &
> Mouse Buttons+
>



IPress any button to map or unmap the Command widget. See the next section.for more information about the Command widget.



+Back to Contents  

  &
>!Command Widget+
>



EThe Command widget lists a number of sub-menus and commands. They are

    
  • Animate
    • Open
    • Play
    • Step
    • Repeat
    • Auto Reverse
    
  • Speed
      
    • Faster
    • Slower
    
  • Direction
      
    • Forward
    • Reverse
    
  • Image Info
  • Help
  • Quit


IMenu items with a indented triangle have a sub-menu. They are representedHabove as the indented items. To access a sub-menu item, move the pointerFto the appropriate menu and press a button and drag. When you find theFdesired sub-menu item, release the button and the command is executed.FMove the pointer away from the sub-menu if you decide not to execute aparticular command.



+Back to Contents  

  &
>(Keyboard Accelerators+
>



Ctl+O
,
Press to load an image from a file.

space
9
Press to display the next image in the sequence.

<
:
Press to speed-up the display of the images. Refer to2-delay for more information.

>
6
Press to slow the display of the images. Refer to2-delay for more information.

?
8
Press to display information about the image. Press0any key or button to erase the information.
9
This information is printed: image name; image size;8and the total number of unique colors in the image.

F1
P
Press to display helpful information about animate(1).

Ctl-q
6
Press to discard all images and exit program.




+Back to Contents  

  &
>X Resources+
>



UAnimate options can appear on the command line or in your X resourceFfile. Options on the command line supersede values specified in your XMresource file. See X(1) for more information on X resources.

RAll animate options have a corresponding X resource. In addition,Dthe animate program uses the following X resources:

b
background (class Background)

ISpecifies the preferred color to use for the Image window background. Thedefault is #ccc.
d
borderColor (class BorderColor)

MSpecifies the preferred color to use for the Image window border. The default is #ccc.
d
borderWidth (class BorderWidth)

HSpecifies the width in pixels of the Image window border. The default is2.
font (class Font or FontList)

ISpecifies the name of the preferred font to use in normal formatted text.0The default is 14 point Helvetica.
b
foreground (class Foreground)

FSpecifies the preferred color to use for text within the Image window.The default is black.
^
geometry (class geometry)

HSpecifies the preferred size and position of the image window. It is not*necessarily obeyed by all window managers.POffsets, if present, are handled in X(1) style. A negative x offset isImeasured from the right edge of the screen to the right edge of the icon,Fand a negative y offset is measured from the bottom edge of the screen$to the bottom edge of the icon.
f
iconGeometry (class IconGeometry)

LSpecifies the preferred size and position of the application when iconified.4It is not necessarily obeyed by all window managers.NOffsets, if present, are handled in the same manner as in class Geometry.
Z
iconic (class Iconic)

LThis resource indicates that you would prefer that the application's windowsGinitially not be visible as if the windows had be immediately iconifiedOby you. Window managers may choose not to honor the application's request.
b
matteColor (class MatteColor)

HSpecify the color of windows. It is used for the backgrounds of windows,Imenus, and notices. A 3D effect is achieved by using highlight and shadow9colors derived from this color. Default value: #ddd.
V
name (class Name)

JThis resource specifies the name under which resources for the applicationHshould be found. This resource is useful in shell aliases to distinguishJbetween invocations of an application, without resorting to creating linksLto alter the executable file name. The default is the application name.
f
sharedMemory (class SharedMemory)

HThis resource specifies whether animate should attempt use shared memoryIfor pixmaps. ImageMagick must be compiled with shared memory support, andHthe display must support the MIT-SHM extension. Otherwise, this resource%is ignored. The default is True.
_
text_font (class textFont)

KSpecifies the name of the preferred font to use in fixed (typewriter style)>formatted text. The default is 14 point Courier.
X
title (class Title)

GThis resource specifies the title to be used for the Image window. ThisFinformation is sometimes used by a window manager to provide some sortJof header identifying the window. The default is the image file name.




+Back to Contents  

  &
>Environment+
>

 !

. DISPLAY+

To get the default host, display number, and screen.

  &
>#Acknowledgements+
>


OThe MIT X Consortium for making network transparent graphics a reality.
VMichael Halle, Spatial Imaging Group at MIT, for the initial=implementation of Alan Paeth's image rotation algorithm.
IDavid Pensak, duPont, for providing a computing1environment that made this program possible.
Y
Paul Raveling, USC Information Sciences Institute.EThe spatial subdivision color reduction algorithm is based on his Imgsoftware.




+Back to Contents  

  &
>Authors+
>



 John Cristy,Omagick-users@imagemagick.org,ImageMagick Studio LLC,
Glenn Randers-Pehrson,=randeg@alum.rpi.edu,ImageMagick Studio LLC.

 




+Back to Contents  

  &
>Copyright+
>



6Copyright (C) 2002 ImageMagick Studio

MPermission is hereby granted, free of charge, to any person obtainingKa copy of this software and associated documentation files ("ImageMagick"),Hto deal in ImageMagick without restriction, including without limitationHthe rights to use, copy, modify, merge, publish, distribute, sublicense,Pand/or sell copies of ImageMagick, and to permit persons to whom the ImageMagickDis furnished to do so, subject to the following conditions:

OThe above copyright notice and this permission notice shall be included>in all copies or substantial portions of ImageMagick.

OThe software is provided "as is", without warranty of any kind, expressKor implied, including but not limited to the warranties of merchantability,Ffitness for a particular purpose and noninfringement.In no event shallGImageMagick Studio be liable for any claim, damages or other liability,Fwhether in an action of contract, tort or otherwise, arising from, outDof or in connection with ImageMagick or the use or other dealings inImageMagick.

;Except as contained in this notice, the name of theGImageMagick Studio LLC shall not be used in advertising or otherwise toLpromote the sale, use or other dealings in ImageMagick without prior written3authorization from the ImageMagick Studio.



+Back to Contents  


>

9Image manipulation software that works like magic.