![]() |
![]() |
![]() |
![]() |
[
About ImageMagick
Command-line Tools
Program Interfaces
] [ Install from Source Binary Releases Resources ] [ Download ] [ Links ] [ Sponsors Trips to Argentina ] |
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: imageThe image sequence. exceptionReturn any errors or warnings in this structure. 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: imageThe image. methodThe layers method. exceptionReturn any errors or warnings in this structure. 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: imageThe image. exceptionReturn any errors or warnings in this structure. |