[ImageMagick]
[sponsor]

CoalesceImages

CoalesceImages() composites a set of images while respecting any page offsets and disposal methods. GIF, MIFF, and MNG animation sequences typically start with an image background and each subsequent image varies in size and offset. CoalesceImages() returns a new sequence where each image in the sequence is the same size as the first and composited with the next image in the sequence.

The format of the CoalesceImages method is:

  Image *CoalesceImages(Image *image,ExceptionInfo *exception)

A description of each parameter follows:

image

The image sequence.

exception

Return any errors or warnings in this structure.

CompareImageLayers

CompareImageLayers() compares each image with the next in a sequence and returns the maximum bounding region of any pixel differences it discovers.

The format of the CompareImageLayers method is:

  Image *CompareImageLayers(const Image *images,
    const MagickLayerMethod method,ExceptionInfo *exception)

A description of each parameter follows:

image

The image.

method

The layers method.

exception

Return any errors or warnings in this structure.

OptimizeImageLayers

OptimizeImageLayers() compares each image the GIF disposed forms of the previous image in the sequence. From this it attempts to select the smallest cropped image to replace each frame, while preserving the results of the animation.

Note that this is not easy, and may require the expandsion of the bounds of previous frame, to clear pixels, using Background Disposal.

The format of the OptimizeImageLayers method is:

  Image *OptimizeImageLayers(const Image *image,ExceptionInfo *exception)

A description of each parameter follows:

image

The image.

exception

Return any errors or warnings in this structure.

 
© 1999-2006 ImageMagick Studio LLC