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

Imagick::compareImages()

Imagick::compareImages - Compares an image to a reconstructed image

Syntax

array Imagick::compareImages (Imagick $compare, int $metric)

Arguments

  • compare - An image to compare to.
  • metric - Provide a valid metric type constant. Refer to this list of metric constants.

Description

Returns an array containing a reconstructed image and the difference between images.

Version

PHP PECL imagick 2.0.0

Return value

Returns TRUE on success.