{"id":13514130,"url":"https://github.com/n7olkachev/imgdiff","last_synced_at":"2025-05-15T23:06:56.659Z","repository":{"id":54812679,"uuid":"320848715","full_name":"n7olkachev/imgdiff","owner":"n7olkachev","description":"Faster than the fastest in the world pixel-by-pixel image difference tool.","archived":false,"fork":false,"pushed_at":"2021-03-25T08:02:58.000Z","size":10,"stargazers_count":1700,"open_issues_count":2,"forks_count":70,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-05-13T01:39:47.137Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/n7olkachev.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-12T14:25:51.000Z","updated_at":"2025-05-01T09:43:41.000Z","dependencies_parsed_at":"2022-08-14T03:40:14.698Z","dependency_job_id":null,"html_url":"https://github.com/n7olkachev/imgdiff","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n7olkachev%2Fimgdiff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n7olkachev%2Fimgdiff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n7olkachev%2Fimgdiff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n7olkachev%2Fimgdiff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/n7olkachev","download_url":"https://codeload.github.com/n7olkachev/imgdiff/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254436947,"owners_count":22070947,"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-08-01T05:00:47.243Z","updated_at":"2025-05-15T23:06:51.538Z","avatar_url":"https://github.com/n7olkachev.png","language":"Go","funding_links":[],"categories":["Go","效率 \u003ca name=\"good\"\u003e\u003c/a\u003e"],"sub_categories":[],"readme":"# imgdiff\n\nFaster than [the fastest in the world pixel-by-pixel image difference tool](https://github.com/dmtrKovalenko/odiff).\n\n## Why?\n\nimgdiff isn't as fast as a tool like this should be and I'm not proud of it, but it is 3X faster than\n[the fastest in the world pixel-by-pixel image difference tool](https://github.com/dmtrKovalenko/odiff),\nso maybe you'll find it useful.\n\n## Features\n\nIt can do everything [odiff](https://github.com/dmtrKovalenko/odiff) can. Faster.\n\n## Benchmarks\n\nI've tested it on Linux, Intel(R) Core(TM) i7-4700HQ CPU @ 2.40GHz, 8 cores.\n\n[Cypress image](https://github.com/dmtrKovalenko/odiff/blob/main/images/www.cypress.io.png) 3446 x 10728\n\n| Command                                                        |      Mean [s] | Min [s] | Max [s] | Relative |\n| :------------------------------------------------------------- | ------------: | ------: | ------: | -------: |\n| `imgdiff images/cypress-1.png images/cypress-2.png output.png` | 1.442 ± 0.012 |   1.420 |   1.462 |     1.00 |\n| `odiff images/cypress-1.png images/cypress-2.png output.png`   | 6.475 ± 0.092 |   6.300 |   6.583 |     4.49 |\n\n[Water image](https://github.com/dmtrKovalenko/odiff/blob/main/images/water-4k.png) 8400 x 4725\n\n| Command                                                    |       Mean [s] | Min [s] | Max [s] | Relative |\n| :--------------------------------------------------------- | -------------: | ------: | ------: | -------: |\n| `imgdiff images/water-1.png images/water-2.png output.png` | 1.908 ± 0.0058 |   1.841 |   2.002 |     1.00 |\n| `odiff images/water-1.png images/water-2.png output.png`   |  6.016 ± 0.415 |   5.643 |   7.140 |     3.15 |\n\n## Usage\n\n```\nUsage: imgdiff [--threshold THRESHOLD] [--diff-image] [--fail-on-layout] BASE COMPARE OUTPUT\n\nPositional arguments:\n  BASE                   Base image.\n  COMPARE                Image to compare with.\n  OUTPUT                 Output image path.\n\nOptions:\n  --threshold THRESHOLD, -t THRESHOLD\n                         Color difference threshold (from 0 to 1). Less more precise. [default: 0.1]\n  --diff-image           Render image to the diff output instead of transparent background. [default: false]\n  --fail-on-layout       Do not compare images and produce output if images layout is different. [default: false]\n  --help, -h             display this help and exit\n```\n\n## Download\n\nYou can find pre-built binaries [here](https://github.com/n7olkachev/imgdiff/releases/tag/v1.0.0).\nimgdiff is written in Go, so there shouldn't be any troubles to compile it for the most of popular platforms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn7olkachev%2Fimgdiff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn7olkachev%2Fimgdiff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn7olkachev%2Fimgdiff/lists"}