Check Media $2.00 / 1,000 calls

Image comparison

What this tool does

This tool compares two images pixel by pixel and tells you whether they look the same. It returns a similarity score plus a picture where the differences are highlighted in red.

When to use it

  • Checking that a resize, crop or watermark did not alter anything else.
  • Verifying that a screenshot matches the expected design after a deploy.
  • Reviewing two versions of a product photo.
  • Detecting small changes in a chart or a dashboard capture.

What to expect

You receive a link to a PNG with the changes highlighted in red, the identical flag, the similarity between 0 and 1 and the number of changed pixels.

Limitations

  • The comparison is visual: metadata is ignored, but a recompressed JPEG can show small differences.
  • When the sizes differ, only the overlapping area is compared and size_mismatch is true.
  • Images are compared as RGB; alpha channels are flattened.

When it fails

  • One of the URLs is not a readable image.
  • The threshold is outside 0-255.
  • A file exceeds 25 MB.

Good to know

  • Raise threshold to ignore JPEG noise.
  • Similarity 1.0 means every compared pixel is identical.
  • For PDFs use transform-compare-pdf.

Input data

Parameter Required Example Description
url Yes https://public.downloads.uproc.io/samples/uproc-og.png Public URL of the first image.
url_b Yes https://public.downloads.uproc.io/samples/uproc-og.png Public URL of the image to compare against.
threshold No 25 Pixel difference tolerated, 0-255. Default 25 ignores JPEG noise.

Output data

Field Description
result Signed URL of the PNG with the differences highlighted in red.
identical True when every compared pixel is the same.
similarity Share of unchanged pixels between 0 and 1.
changed_pixels Number of pixels above the threshold.
size_mismatch True when both images have different dimensions.