O animate - display a sequence of images on any workstation running X [ [ options O ...] file ...] animate displays a sequence of images on any workstation display N running an X server. animate first determines the hardware capabilities of theP workstation. If the number of unique colors in an image is less than or equal toN the number the workstation can support, the image is displayed in an X window.O Otherwise the number of colors in the image is first reduced to match the color G resolution of the workstation before it is displayed. This means that a K continuous-tone 24 bits-per-pixel image can display on a 8 bit pseudo-color N device or monochrome device. In most instances the reduced color image closelyI resembles the original. Alternatively, a monochrome or pseudo-color image K sequence can display on a continuous-tone 24 bits-per-pixel device. To help O prevent color flashing on X server visuals that have colormaps, animate creates M a single colormap from the image sequence. This can be rather time consuming. N You can speed this operation up by reducing the colors in the image before youP `animate' them. Use mogrify to color reduce the images to a single colormap. SeeL mogrify(1) for details. Alternatively, you can use a Standard Colormap; or aM static, direct, or true color visual. You can define a Standard Colormap with P xstdcmap. See XSTDCMAP(1) for details. To animate a set of images of a cockatoo,M use:  animate cockatoo.* To animate a cockatoo image sequence while using the O Standard Colormap "best", use:  xstdcmap -best  animate -map best cockatoo.* To L animate an image of a cockatoo without a border centered on a backdrop, use:I animate +borderwidth -backdrop cockatoo.* display the image centered on a 	 backdrop.   K This backdrop covers the entire workstation screen and is useful for hiding J other X window activity while viewing the image sequence. The color of theP backdrop is specified as the background color. Refer to X RESOURCES for details.P preferred size and location of the clipped image. See X(1) for details about the geometry specification.   M Use clipping to apply image processing options, or display, only a particular  area of an image.   O The equivalent X resource for this option is clipGeometry (class ClipGeometry). E See X RESOURCES for details. the type of colormap: Shared or Private.   K This option only applies when the default X server visual is PseudoColor or N GrayScale. Refer to -visual for more details. By default, a shared colormap isP allocated. The image shares colors with other X clients. Some image colors couldL be approximated, therefore your image may look very different than intended.P Choose Private and the image colors appear exactly as they are defined. However,H other clients may go "technicolor" when the image colormap is installed.( preferred number of colors in the image.K The actual number of colors in the image may be less than your request, but K never more. Note, this is a color reduction option. Images with less unique F colors than specified with this option will remain unchanged. Refer to quantize(9) for more details.   M Note, options -dither, -colorspace, and -treedepth affect the color reduction M algorithm. the type of colorspace: GRAY, RGB, XYZ, YCbCr, YIQ, or YUV.  Color M reduction, by default, takes place in the RGB color space. Empirical evidence H suggests that distances in color spaces such as YUV or YIQ correspond toO perceptual color differences more closely than do distances in RGB space. These K color spaces may give better results when color reducing an image. Refer to  quantize(9) for more details.   M The -colors or -monochrome option is required for this option to take effect. % display the next image after pausing.   K This option is useful for regulating the display of the sequence of images. O milliseconds milliseconds must expire before the display of the next image. The M default is 30 milliseconds between each frame of the image sequence. vertical $ and horizontal density of the image.  O This option specifies an image density for a Postscript page. The default is 72 P dots per inch in the horizontal and vertical direction. Use this option to alterG the default density. specifies the X server to contact; see X(1). apply   - Floyd/Steinberg error diffusion to the image.   L The basic strategy of dithering is to trade intensity resolution for spatialM resolution by averaging the intensities of several neighboring pixels. Images M which suffer from severe contouring when reducing colors can be improved with  this option.  M The -colors or -monochrome option is required for this option to take effect.  level of gamma correction.  O The same color image displayed on two different workstations may look different M due to differences in the display monitor. Use gamma correction to adjust for @ this color difference. Reasonable values extend from 0.8 to 2.3.  O You can apply separate gamma values to the red, green, and blue channels of the H image with a gamma value list delineated with commas (i.e. 1.7,2.3,1.2).O preferred size and location of the image window. See X(1) for details about the M geometry specification. By default, the window size is the image size and the - location is choosen by you when it is mapped. J By default, the width and height are maximum values. That is, the image isN expanded or contracted to fit the width and height value while maintaining theO aspect ratio of the image. Append an exclamation point to the geometry to force K the image size to exactly the size you specify. For example, if you specify L 640x480! the image width is set to 640 pixels and height to 480. If only oneN factor is specified, both the width and height assume the value.  To specify aM percentage width or height instead, append %. The image size is multiplied by I the width and height percentages to obtain the final image dimensions. To K increase the size of an image, use a value greater than 100 (e.g. 125%). To 9 decrease an image's size, use a percentage less than 100.   O If the specified image size is smaller than the actual image size, the image is J first reduced to an integral of the specified image size with an antialiasO digital filter. The image is then scaled to the exact specified image size with O pixel replication. If the specified image size is greater than the actual image L size, the image is first enlarged to an integral of the specified image sizeL with bilinear interpolation. The image is then scaled to the exact specified" image size with pixel replication.  N When displaying an image on an X server, <x offset> and <y offset> is relative to the root window.   P The equivalent X resource for this option is imageGeometry (class ImageGeometry)K See X RESOURCES for details. the type of interlacing scheme: NONE, LINE, or  PLANE.  K This option is used to specify the type of interlacing scheme for raw image P formats such as RGB or YUV. NONE means do not interlace (RGBRGBRGBRGBRGBRGB...),P LINE uses scanline interlacing (RRR...GGG...BBB...RRR...GGG...BBB...), and PLANEO uses plane interlacing (RRRRRR...GGGGGG...BBBBBB...). animate images using this  Standard Colormap type.   * Choose from these Standard Colormap types:&  default  best  red  green  blue  gray  N The X server must support the Standard Colormap you choose, otherwise an errorM occurs. See XSTDCMAP(1) for one way of creating Standard Colormaps. transform M the image to black and white. create a "mirror image" by reflecting the image 3 scanlines. apply Paeth image rotation to the image.   K Empty triangles left over from rotating the image are filled with the color O defined by the pixel at location (0,0). Normally, this integer value is zero or M one. A zero or one tells animate to choose a optimal tree depth for the color  reduction algorithm.  M An optimal depth generally allows the best representation of the source image M with the fastest computational speed and the least amount of memory. However,   F the default depth is inappropriate for some images. To assure the bestG representation, try values between 2 and 8 for this parameter. Refer to  quantize(9) for more details.   M The -colors or -monochrome option is required for this option to take effect. + print detailed information about the image.   L This information is printed: image scene number; image name; image size; theP image class (DirectClass or PseudoClass); the total number of unique colors; andM the number of seconds to read and transform the image. Refer to miff(5) for a  description of the image class.   L If -colors is also specified, the total unique colors in the image and colorM reduction error values are printed. Refer to quantize(9) for a description of 4 these values. animate images using this visual type.  ! Choose from these visual classes: H  StaticGray  GrayScale  StaticColor  PseudoColor  TrueColor  DirectColor default  visual id  P The X server must support the visual you choose, otherwise an error occurs. If aP visual is not specified, the visual class that can display the most simultaneousJ colors on the default screen is choosen. set the background pixmap of this window to the image.  L id can be a window id or name. Specify root to select X's root window as the target window.  J By default the image is tiled onto the background of the target window. IfO -backdrop or -geometry are specified, the image is surrounded by the background ( color. Refer to X RESOURCES for details.  J The image will not display on the root window if the image has more uniqueO colors than the target window colormap allows. Use -colors to reduce the number N of colors. In addition to those listed above, you can specify these standard XK resources as command line options: -background, -bordercolor, -borderwidth, K -font, -foreground, -iconGeometry, -iconic, -matte, -name, or -title. See X L RESOURCES for details. Any option you specify on the command line remains inK effect until it is explicitly changed by specifying the option again with a N different effect. For example, to animate two images, the first with 32 colorsO and the second with only 16 colors, use:  animate -colors 32 cockatoo.1 -colors J 16 cockatoo.2 Change - to + in any option above to reverse its effect. ForN example, specify +dither to not apply error diffusion to an image. By default,K the image format is determined by its magic number. To specify a particular N image format, precede the filename with an image format name and a colon (i.e.O ps:image) or specify the image type as the filename suffix (i.e. image.ps). See N convert(1) for a list of valid image formats. When you specify X as your imageP type, the filename has special meaning. It specifies an X window by id, name, orO root. If no filename is specified, the window is selected by clicking the mouse L in the desired window. Specify file as - for standard input, If file has theG extension .Z or .gz, the file is uncompressed with uncompress or gunzip O respectively. Precede the image file name with | to pipe from a system command. O Image filenames may appear in any order on the command line if the image format J is MIFF (refer to miff(5) and the scene keyword is specified in the image.O Otherwise the images will display in the order they appear on the command line. H Press and drag to select a command from a pop-up menu. Choose from these	 commands:   O  Play  Step  Repeat  Auto Reverse  Slower  Faster  Forward  Reverse  Image Info P Quit Press to animate the sequence of images. Press to display the next image inK the sequence. Press to continually display the sequence of images. Press to N automatically reverse the sequence of images. Press to slow the display of theN images. Refer to -delay for more information. Press to speed-up the display ofI the images. Refer to -delay for more information. Press to animate in the N forward direction. Press to animate in the reverse direction. Press to displayN information about the image. Press any key or button to erase the information.  L This information is printed: image name; image size; and the total number ofI unique colors in the image. Press to discard all images and exit program. J animate options can appear on the command line or in your X resource file.O Options on the command line supersede values specified in your X resource file. - See X(1) for more information on X resources.   M All animate options have a corresponding X resource. In addition, the animate P program uses the following X resources: Specifies the preferred color to use forO the image window background. The default is #ccc. Specifies the preferred color P to use for the image window border. The default is black. Specifies the width inN pixels of the image window border. The default is 2. Specifies the name of theO preferred font to use when displaying text within the image window. The default N is /g9x15, fixed, or /g6x13 determined by the image window size. Specifies theN preferred color to use for text within the image window. The default is black.O Specifies the preferred size and position of the application when iconified. It N is not necessarily obeyed by all window managers. This resource indicates thatN you would prefer that the application's windows initially not be visible as ifO the windows had be immediately iconified by you. Window managers may choose not P to honor the application's request. Specify the color of windows. It is used forP the backgrounds of windows, menus, and notices. A 3D effect is achieved by usingN highlight and shadow colors derived from this color. Default value: #eee. ThisO resource specifies the name under which resources for the application should be F found. This resource is useful in shell aliases to distinguish betweenO invocations of an application, without resorting to creating links to alter the H executable file name. The default is the application name. This resourceH specifies the title to be used for the image window. This information isM sometimes used by a window manager to provide some sort of header identifying P the window. The default is the image file name. To get the default host, displayO number, and screen. display(1), import(1), mogrify(1), convert(1), quantize(9), P miff(5), X(1), xstdcmap(1), compress(1), miff(5) Copyright 1994 E. I. du Pont deL Nemours & Company Permission to use, copy, modify, distribute, and sell thisM software and its documentation for any purpose is hereby granted without fee, P provided that the above copyright notice appear in all copies and that both thatO copyright notice and this permission notice appear in supporting documentation, F and that the name of E. I. du Pont de Nemours & Company not be used inK advertising or publicity pertaining to distribution of the software without O specific, written prior permission. E. I. du Pont de Nemours & Company makes no M representations about the suitability of this software for any purpose. It is P provided "as is" without express or implied warranty. E. I. du Pont de Nemours &L Company disclaims all warranties with regard to this software, including allM implied warranties of merchantability and fitness, in no event shall E. I. du N Pont de Nemours & Company be liable for any special, indirect or consequentialN damages or any damages whatsoever resulting from loss of use, data or profits,N whether in an action of contract, negligence or other tortuous action, arisingO out of or in connection with the use or performance of this software. The MIT X L Consortium for making network transparent graphics a reality. Michael Halle,L Spatial Imaging Group at MIT, for the initial implementation of Alan Paeth'sO image rotation algorithm. David Pensak, E. I. du Pont de Nemours & Company, for G providing a computing environment that made this program possible. Paul L Raveling, USC Information Sciences Institute, for the original idea of usingN space subdivision for the color reduction algorithm. John Cristy, E.I. du Pont! de Nemours & Company Incorporated 