{"id":18710772,"url":"https://github.com/apify/actor-imagediff","last_synced_at":"2026-03-16T01:45:19.462Z","repository":{"id":40801223,"uuid":"153589649","full_name":"apify/actor-imagediff","owner":"apify","description":"Returns an image containing difference of two given images.","archived":false,"fork":false,"pushed_at":"2023-01-08T00:49:10.000Z","size":835,"stargazers_count":3,"open_issues_count":13,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-30T07:06:11.970Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-18T08:26:23.000Z","updated_at":"2024-04-18T09:08:03.000Z","dependencies_parsed_at":"2023-02-08T04:00:49.929Z","dependency_job_id":null,"html_url":"https://github.com/apify/actor-imagediff","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/apify/actor-imagediff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Factor-imagediff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Factor-imagediff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Factor-imagediff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Factor-imagediff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apify","download_url":"https://codeload.github.com/apify/actor-imagediff/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Factor-imagediff/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263366701,"owners_count":23455797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T12:35:36.694Z","updated_at":"2025-11-03T16:31:46.539Z","avatar_url":"https://github.com/apify.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# actor-imagediff\n\nReturns an image containing difference of two given images. Internally uses [pixelmatch](https://www.npmjs.com/package/pixelmatch#pixelmatchimg1-img2-output-width-height-options) NPM package and supports all of its options.\n\nInput consists of 2 images (PNG or JPEG) and other optional parameters:\n\n```json\n{\n    \"imageUrl1\": \"https://raw.githubusercontent.com/mapbox/pixelmatch/master/test/fixtures/4a.png\",\n    \"imageUrl2\": \"https://raw.githubusercontent.com/mapbox/pixelmatch/master/test/fixtures/4b.png\",\n    \"outputAsJpeg\": false,\n    \"pixelmatchOptions\": { \"threshold\": 0.1 }\n}\n```\n\nDefault 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](https://www.npmjs.com/package/pixelmatch#pixelmatchimg1-img2-output-width-height-options) NPM package.\n\nThis actor can be used as [synchronous API](https://www.apify.com/docs/api/v2#/reference/actors/run-actor-synchronously/with-input) that returns diff image as response to POST request.\n\n\u003ctable\u003e\n    \u003cthead\u003e\n        \u003ctr\u003e\n            \u003cth colspan=\"2\"\u003eSource images\u003c/th\u003e\n            \u003cth\u003eDiff\u003c/th\u003e\n        \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cimg src=\"https://apify-uploads-prod.s3.amazonaws.com/e6917240-0195-4b29-9681-3b6ec4a9d653_screencapture-apify-2018-10-30-15_49_12.png\" style=\"max-width: 100%\" /\u003e\u003c/td\u003e\n            \u003ctd\u003e\u003cimg src=\"https://apify-uploads-prod.s3.amazonaws.com/10bca866-90d7-42e5-a555-ba5a689bad47_screencapture-apify-2018-10-30-15_48_28.png\" style=\"max-width: 100%\" /\u003e\u003c/td\u003e\n            \u003ctd\u003e\u003cimg src=\"https://apify-uploads-prod.s3.amazonaws.com/b8b81c5d-bc30-44b9-8def-cba535106d66_OUTPUT.png\" style=\"max-width: 100%\" /\u003e\u003c/td\u003e\n        \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapify%2Factor-imagediff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapify%2Factor-imagediff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapify%2Factor-imagediff/lists"}