Home > PHP > Function > > Imagick::compareImageLayers()

Imagick::compareImageLayers()

Imagick::compareImageLayers - Returns the maximum bounding region between images

Syntax

Imagick Imagick::compareImageLayers (int $method)

Arguments

  • method - One of the layer method constants.

Description

Compares each image with the next in a sequence and returns the maximum bounding region of any pixel differences it discovers. This method is available if Imagick has been compiled against ImageMagick version 6.2.9 or newer.

Version

PHP PECL imagick 2.0.0

Return value

Returns TRUE on success.