{"category":"image","endpoint":"https://setget.net/v1/tools/image-diff","examples":[{"input":{"after":"sample.png","before":"sample.png"},"title":"An image against itself"},{"input":{"after":"sample.jpg","before":"sample.png","resize":true,"tolerance":16},"title":"Different sizes, ignoring small changes"}],"input_schema":{"additionalProperties":false,"properties":{"after":{"description":"The changed image.","format":"setget-file","type":"string","x-accept":["image"]},"before":{"description":"The original image.","format":"setget-file","type":"string","x-accept":["image"]},"highlight":{"default":"#ff0000","description":"Colour that marks the differing pixels.","maxLength":30,"type":"string"},"resize":{"default":false,"description":"If the two images have different sizes, scale \"after\" to the size of \"before\" instead of stopping.","type":"boolean"},"tolerance":{"default":0,"description":"How much a colour value (0-255) may differ before a pixel counts as different. 0 counts every change.","maximum":255,"minimum":0,"type":"integer"}},"required":["before","after"],"type":"object"},"keywords":["image diff","compare images","visual diff","pixel diff","screenshot comparison","visual regression","difference","spot the difference"],"related":["image-perceptual-hash","diff","image-info"],"slug":"image-diff","summary":"Compare two images pixel by pixel: get a highlighted difference image, the share of changed pixels and where they are.","tier":"job","timeout_seconds":120,"title":"Image diff","url":"https://setget.net/tools/image-diff"}
