Function: compareImages()
function compareImages(input): CompareImageResult;
Defined in: packages/uimatch-core/src/core/compare.ts:571
Compares two PNG images and returns pixel difference metrics. Optionally calculates style differences if styles are provided.
Parameters
input
Images, styles, and comparison options
Returns
Pixel diff ratio, count, visual diff, total pixels, and style diffs (if applicable)
Throws
If image dimensions don't match and sizeMode is 'strict'