Crate engiffen [] [src]

Engiffen is a library to convert sequences of images into animated Gifs.

This library is a wrapper around the image and gif crates to convert a sequence of images into an animated Gif.

Structs

Gif

Struct representing an animated Gif

Image

An image, currently a wrapper around image::DynamicImage. If loaded from disk through the load_image or load_images functions, its path property contains the path used to read it from disk.

Enums

Error

Functions

engiffen

Converts a sequence of images into a Gif at a given frame rate. The sample_rate parameter, if passed, specifies the fraction of pixels that will be sampled when the color palette is computed. Higher values means fewer pixels sampled, and it scales quadratically. In practice, if the value is None or Some(1), then all pixels will be sampled. Otherwise, for values of Some(N), every Nth pixel on every Nth row will be sampled, for a total of 1/(N*N) of the pixels sampled.

load_image

Loads an image from the given file path.

load_images

Loads images from a list of given paths. Errors encountered while loading files are skipped.