Free plan

Visual change check

Spot what changed between a before and an after picture
POST
/v1/render/visual-check

About this tool

Compares two pictures of the same size and finds every spot where they differ. It shows the changes in colour, and it can draw a box around each changed area. You can ignore small colour differences, skip areas such as a clock, and say how much change is allowed.
For example, you compare a screenshot of your website before and after an update to check that nothing moved by accident.

How to use it

  1. Choose this tool.
  2. Add the first picture (before) and the second picture (after).
  3. Choose how to see the changes: on one picture, side by side, blended, or as a black and white map.
  4. Set how small a difference should count, and how much change you allow.
  5. Press Generate, then download the result.

What you get back

You get a new picture that highlights the changes, plus a short report saying how much changed and where. You can download both.
GOOD TO KNOW
Pictures are compared as they are; no network is used. The answer picture is a PNG. Counts as one render.
TEST IT LIVE

Try Visual change check in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Render
Plan
Free
Method
POST
Endpoint
/v1/render/visual-check
Tool ID
render.visual-check
Authentication
API key
Accepts
JPEG, PNG, WEBP, GIF, AVIF, TIFF +15 more
Background jobs
Yes
Usage group
Render
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/render/visual-check" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'file=@document.pdf' \
  -F 'other=@photo.jpg' \
  -F 'mode=overlay' \
  -F 'threshold=0.1' \
  -F 'fit=strict'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.render.visualCheck({
    "file": 'document.pdf',
    "other": 'photo.jpg',
    "mode": "overlay",
    "threshold": 0.1,
    "fit": "strict"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->render()->visualCheck([
    'file' => 'document.pdf',
    'other' => 'photo.jpg',
    'mode' => 'overlay',
    'threshold' => 0.1,
    'fit' => 'strict',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Compare two pictures (before and after a change) pixel by pixel: how much changed, where (boxes around the changed areas), and a picture that shows the changes in colour, side by side, blended or as a black-and-white mask. Ignore areas, tolerate small colour differences and set how much change you allow.

Visual change check accepts JPEG, PNG, WEBP, GIF, AVIF, TIFF, SVG, SVGZ, BMP, ICO, APNG, PNM and 9 more. Send one file per request.

Visual change check is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/render/visual-check with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.