ToAnimatedActionTrait
trait ToAnimatedActionTrait
Trait ToAnimatedActionTrait
Methods
Sets the total number of frames to sample from the original video.
Sets the delay between frames of an animated image in milliseconds.
Details
ToAnimatedActionTrait
sampling(int|string $value)
Sets the total number of frames to sample from the original video.
Relevant when converting videos to animated GIF or WebP format. If not specified, the resulting GIF or WebP samples the whole video (up to 400 frames, at up to 10 frames per second). By default the duration of the animated image is the same as the duration of the video, no matter how many frames are sampled from the original video (use the delay qualifier to adjust the amount of time between frames).
ToAnimatedActionTrait
delay(Delay|int $delay)
deprecated
deprecated
Sets the delay between frames of an animated image in milliseconds.
ToAnimatedActionTrait
format(AnimatedFormat|string $format)
Sets the animated image format.