Image Difference Generator avatar
Image Difference Generator

Pricing

Pay per usage

Go to Store
Image Difference Generator

Image Difference Generator

Developed by

Apify

Maintained by Apify

Returns a difference of two given images as JPEG or PNG image.

4.0 (3)

Pricing

Pay per usage

4

Monthly users

3

Runs succeeded

91%

Last modified

10 months ago

actor-imagediff

Returns an image containing difference of two given images. Internally uses pixelmatch NPM package and supports all of its options.

Input consists of 2 images (PNG or JPEG) and other optional parameters:

1{
2    "imageUrl1": "https://raw.githubusercontent.com/mapbox/pixelmatch/master/test/fixtures/4a.png",
3    "imageUrl2": "https://raw.githubusercontent.com/mapbox/pixelmatch/master/test/fixtures/4b.png",
4    "outputAsJpeg": false,
5    "pixelmatchOptions": { "threshold": 0.1 }
6}

Default output is an PNG image containing diff of given images. Using options outputAsJpeg: true the result my be switched to JPEG format. Parameter pixelmatchOptions may contain any parameters supported by pixelmatch NPM package.

This actor can be used as synchronous API that returns diff image as response to POST request.

Source imagesDiff

Pricing

Pricing model

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage.