{"id":13659866,"url":"https://github.com/ddo/node-resemble","last_synced_at":"2025-12-30T03:03:07.480Z","repository":{"id":18259359,"uuid":"21416380","full_name":"ddo/node-resemble","owner":"ddo","description":"Image analysis and comparison with HTML5","archived":false,"fork":false,"pushed_at":"2017-03-23T10:33:29.000Z","size":10,"stargazers_count":20,"open_issues_count":2,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-31T20:05:52.805Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ddo.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":"2014-07-02T08:08:51.000Z","updated_at":"2019-04-16T00:22:05.000Z","dependencies_parsed_at":"2022-09-26T21:50:33.903Z","dependency_job_id":null,"html_url":"https://github.com/ddo/node-resemble","commit_stats":{"total_commits":14,"total_committers":3,"mean_commits":4.666666666666667,"dds":0.4285714285714286,"last_synced_commit":"7515118d217acc5a87d898ae293385eb7d391638"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddo%2Fnode-resemble","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddo%2Fnode-resemble/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddo%2Fnode-resemble/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddo%2Fnode-resemble/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ddo","download_url":"https://codeload.github.com/ddo/node-resemble/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223958145,"owners_count":17231746,"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-02T05:01:13.102Z","updated_at":"2025-12-30T03:03:07.403Z","avatar_url":"https://github.com/ddo.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"node-resemble [![Build Status][semaphoreci-img]][semaphoreci-url]\n=============\n\n[![version][version-img]][version-url]\n[![download][download-img]][download-url]\n\n[![dependency][dependency-img]][dependency-url]\n\n[![climate][climate-img]][climate-url]\n\n[download-img]: https://img.shields.io/npm/dm/node-resemble.svg?style=flat-square\n[download-url]: https://www.npmjs.com/package/node-resemble\n\n[version-img]: https://img.shields.io/npm/v/node-resemble.svg?style=flat-square\n[version-url]: https://www.npmjs.com/package/node-resemble\n\n[dependency-img]: https://img.shields.io/david/ddo/node-resemble.svg?style=flat-square\n[dependency-url]: https://david-dm.org/ddo/node-resemble\n\n[climate-img]: https://img.shields.io/codeclimate/github/ddo/node-resemble.svg?style=flat-square\n[climate-url]: https://codeclimate.com/github/ddo/node-resemble\n\n[semaphoreci-img]: https://semaphoreci.com/api/v1/ddo/node-resemble/branches/master/badge.svg\n[semaphoreci-url]: https://semaphoreci.com/ddo/node-resemble\n\nNode port of [Resemble.js](https://github.com/Huddle/Resemble.js).\n\n## installation\n\n```bash\n$ npm i node-resemble\n```\n\n## note\n\n[node-canvas](https://github.com/Automattic/node-canvas)  is a [Cairo](http://cairographics.org/) backed Canvas implementation for NodeJS.\n\nUnless previously installed you'll need Cairo. For system-specific installation view the node-canvas [Wiki](https://github.com/Automattic/node-canvas/wiki/_pages).\n\n## example\n\n```js\nvar fs = require('fs');\n\nvar resemble = require('node-resemble');\n\nvar github_img1 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC/xhBQAAAJlQTFRFJiYmJiYmJSUlJiYmKysrJiYmJSUlJiYmJSUlJCQkJiYmJycnJiYmJiYmJSUlJiYmJSUlJiYmJSUlJCQkJycnJCQkJycnJiYmJSUlJiYmJiYmJycnJiYmJiYmJSUlJycnJycnJCQkJSUlJiYmJiYmJycnJiYmJycnJiYmJSUlJiYmJiYmJycnJiYmEhISISEhJycnAAAAJiYmQmWwmAAAADJ0Uk5T9JNotgyiTK2KR0P7Zij+PYni/StBMdmBpKnq5tbw1VXsKu9RUM3O7cl8V5ql3w42+gB0ejcrAAAApElEQVQY012PRRIEMQwDs8zMOAzhyP9/3CYDl9XJ7irZEoOXldo5LW2YGWAUlVwIXpIyAZi6ytAor2rjgao2pgXjpFJglvLLdrbez4eT1TIny2QJS50WKCXTHLceDMA1cwLXHsQQjrkIhx4wRC5YRj2og0UW2Ll2P05RSP82g72/iJ6PMzL/FipOgIJIA6cQzEdPBT7eAZE20UO5b7jy7sr91f8BZR4qkBlEJUYAAAAASUVORK5CYII=';\n\nvar github_img2 = fs.readFileSync('./example.png');\n\nresemble(github_img1).onComplete(function(data) {\n    console.log(data);\n});\n\nresemble(github_img1).compareTo(github_img2).onComplete(function(data) {\n    console.log(data);\n});\n```\n\n## test\n\nall PR should be tested before submit\n\n```sh\nnpm i\nnpm test\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddo%2Fnode-resemble","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fddo%2Fnode-resemble","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddo%2Fnode-resemble/lists"}