public function isEqual()
    {
        // CHECK IMAGES DIMENSIONS
        if(!$this->isDimensionsEqual())
        {
            return FALSE;
        }

        $compare = $this->image1->compareImages($this->image2, Imagick::METRIC_MEANSQUAREERROR);

        // IMAGE IS EXACTLY THE SAME
        if($compare === TRUE)
        {
            return TRUE;
        }
        // IMAGE IS IN TOLERABLE RANGE
        elseif($compare)
        {
            if($compare[1] < $this->tolerance)
            {
                return TRUE;
            }
        }

        return FALSE;
    }
public function isEqual()
    {
        // CHECK IMAGES DIMENSIONS
        if(!$this->isDimensionsEqual())
        {
            return FALSE;
        }

        $compare = $this->image1->compareImages($this->image2, Imagick::METRIC_MEANSQUAREERROR);

        // IMAGE IS EXACTLY THE SAME
        if($compare === TRUE)
        {
            return TRUE;
        }
        // IMAGE IS IN TOLERABLE RANGE
        elseif($compare)
        {
            if($compare[1] < $this->tolerance)
            {
                return TRUE;
            }
        }

        return FALSE;
    }
public function isEqual ( ) { // CHECK IMAGES DIMENSIONS if ( ! $ this -> isDimensionsEqual ( ) ) { return FALSE ; } $ compare = $ this -> image1 -> compareImages ( $ this -> image2 , Imagick :: METRIC_MEANSQUAREERROR ) ; // IMAGE IS EXACTLY THE SAME if ( $ compare === TRUE ) { return TRUE ; } // IMAGE IS IN TOLERABLE RANGE elseif ( $ compare ) { if ( $ compare [ 1 ] < $ this -> tolerance ) { return TRUE ; } } return FALSE ; }
Check if images is exactly the same.
@return bool
Check if images is exactly the same .