generates an animation whose frames are the successive imagei.
represents an animated image from file.
Details and Options
- AnimatedImage can be used to display a list of images as a dynamic animation. Animated images are typically stored in formats such as PNG and GIF.
- In AnimatedImage[file], file can be any of the following:
File["file"] or "file" file name, searched for on $Path URL["url"] or "url" HTTP, HTTPS or FTP URL CloudObject[…] a cloud object LocalObject[…] a local object
- The syntax AnimatedImage[…][prop] can be used to extract specific properties.
- The following properties are supported:
"AnimationRepetitions" number of times to repeat the animation "Channels" number of image channels "ColorSpace" the color space to assume for data "DataType" underlying data type "FrameRate" frame rate to use "ImageCount" number of images "ImageList" all images "Interleaving" whether data is stored interleaved "RasterSize" pixel dimensions of images "TotalDuration" the total duration "Transparency" whether the image has transparency (alpha) channel
- The following options can be specified:
AnimationRepetitions Infinity how many times to run before stopping AnimationRunning True whether the animation is running DefaultDuration Automatic the default duration in seconds FrameRate 24 the rate at which images are displayed ImageSize All the overall image size to use RefreshRate Automatic the default number of times per second to refresh
- Information for AnimatedImage includes the following properties:
"AnimationRepetitions" number of times to repeat the animation "Channels" number of image channels "ColorSpace" the color space to assume for data "DataType" underlying data type "FrameRate" frame rate to use "ImageCount" number of images "ImageDimensions" pixel dimensions "Interleaving" whether data is stored interleaved "RasterSize" pixel dimensions of images "TotalDuration" the total duration "Transparency" whether the image has transparency (alpha) channel
- Basic image editing functions that support AnimatedImage are: ColorConvert, ImageCrop, ImagePad, ImageReflect, ImageResize, ImageRotate, ImageTake and ImageTrim.
- Use Video and ListAnimate to convert an animated image to the corresponding objects.
Examplesopen allclose all
Basic Examples (2)
Use AnimationRunning to specify whether the animation is running by default:
Use DefaultDurations to control the time duration of one animation cycle:
Use FrameRate->n to display up to n frames per second:
Use RefreshRate->n to refresh an animation up to n times per second:
Properties & Relations (4)
Perform structural image operations directly on AnimatedImage:
Use ListAnimate to display animation controls:
Use Video to convert the animation to a video object:
Interactive Examples (1)
Use a Manipulate to interactively control the animation settings:
Wolfram Research (2020), AnimatedImage, Wolfram Language function, https://reference.wolfram.com/language/ref/AnimatedImage.html.
Wolfram Language. 2020. "AnimatedImage." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AnimatedImage.html.
Wolfram Language. (2020). AnimatedImage. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AnimatedImage.html