Actor picture

Image Difference Generator


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

No credit card required

Author's avatarApify
  • Modified
  • Users61
  • Runs3,403
Actor picture
Image Difference Generator

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:

    "imageUrl1": "",
    "imageUrl2": "",
    "outputAsJpeg": false,
    "pixelmatchOptions": { "threshold": 0.1 }

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 images Diff


See how Image Difference Generator is used in industries around the world