{"_id":"@bouzuya/resemble","_rev":"2-ae499f15c5e1aaf9b850e4fcca6d9933","name":"@bouzuya/resemble","description":"Image analysis and comparison for Node.js using TypeScript","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.0":{"name":"@bouzuya/resemble","description":"Image analysis and comparison for Node.js using TypeScript","version":"0.0.0","author":{"name":"bouzuya","email":"m@bouzuya.net","url":"http://bouzuya.net/"},"bugs":{"url":"https://github.com/bouzuya/resemble/issues"},"dependencies":{"jpeg-js":"0.2.0","pngjs":"~2.2.0"},"devDependencies":{"@types/jpeg-js":"^0.3.0","@types/pngjs":"^3.3.0","beater":"^5.0.1","cpx":"^1.5.0","npm-run-all":"^4.1.2","rimraf":"^2.6.2","tap-dot-b":"^0.1.0","typescript":"^2.6.2","watch":"^1.0.2"},"files":["lib"],"homepage":"https://github.com/bouzuya/resemble","keywords":["compare","comparison","diff","image"],"license":"MIT","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/bouzuya/resemble.git"},"scripts":{"build":"npm-run-all -s \"build:ts\" \"build:lib\"","build:lib":"cpx \".tmp/src/*\" \"lib\"","build:ts":"tsc","clean":"rimraf .tmp","prepublish":"npm-run-all -s \"clean\" \"build\"","test":"node .tmp/test/index.js | tap-dot-b","watch":"npm-run-all -p \"watch:build\" \"watch:test\"","watch:build":"npm run build -- --watch","watch:test":"watch \"npm run test\" .tmp --wait 1"},"gitHead":"9ba4927b5b7b46c0f20982a38b9a48a49777570a","_id":"@bouzuya/resemble@0.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.3","_npmUser":{"name":"bouzuya","email":"m@bouzuya.net"},"dist":{"integrity":"sha512-FOfw3GWMurieU2KOZA1uUKF/XkSsxThOoj82SiISgtVysQbCSmQPsWGwQ7QprsrrBwNzxx2ohGAX98QyT2jgfw==","shasum":"69e0a4ede09e617ae065cef79c845299d5c5db43","tarball":"https://registry.npmjs.org/@bouzuya/resemble/-/resemble-0.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxpiGwssbEwQQALN8DTyHK7iF1CZL2d+fdbGM8ltUrvAIgFSLItt2NLE4DFN3Gmhcaq68F+8EvX3cyRhH4XUQaDms="}]},"maintainers":[{"name":"bouzuya","email":"m@bouzuya.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resemble-0.0.0.tgz_1514641546754_0.27875295956619084"}},"0.0.1":{"name":"@bouzuya/resemble","description":"Image analysis and comparison for Node.js using TypeScript","version":"0.0.1","author":{"name":"bouzuya","email":"m@bouzuya.net","url":"http://bouzuya.net/"},"bugs":{"url":"https://github.com/bouzuya/resemble/issues"},"dependencies":{"jpeg-js":"0.2.0","pngjs":"~2.2.0"},"devDependencies":{"@types/jpeg-js":"^0.3.0","@types/pngjs":"^3.3.0","beater":"^5.0.1","cpx":"^1.5.0","npm-run-all":"^4.1.2","rimraf":"^2.6.2","tap-dot-b":"^0.1.0","typescript":"^2.6.2","watch":"^1.0.2"},"files":["lib"],"homepage":"https://github.com/bouzuya/resemble","keywords":["compare","comparison","diff","image"],"license":"MIT","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/bouzuya/resemble.git"},"scripts":{"build":"npm-run-all -s \"build:ts\" \"build:lib\"","build:lib":"cpx \".tmp/src/**/*.{ts,js}\" \"lib\"","build:ts":"tsc","clean":"rimraf .tmp","prepare":"npm-run-all -s \"clean\" \"build\"","test":"node .tmp/test/index.js | tap-dot-b","watch":"npm-run-all -p \"watch:build\" \"watch:test\"","watch:build":"npm run build -- --watch","watch:test":"watch \"npm run test\" .tmp --wait 1"},"gitHead":"1569fa9031b84ae06b861d950d023cd6bf87ebfd","_id":"@bouzuya/resemble@0.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.3","_npmUser":{"name":"bouzuya","email":"m@bouzuya.net"},"dist":{"integrity":"sha512-Dj7sslNcUhQe48UNdc3WM6VtQYE/1iZoeC25bE3LzB619IfGrRzadk5XqHHQBi9WnX87eaUAmpIYBWiKOFQ4fQ==","shasum":"9c6a103d232b8671f0d9820fdc51beef3b326a74","tarball":"https://registry.npmjs.org/@bouzuya/resemble/-/resemble-0.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHwPZkSRdcxdESftL2cYg72swx1TRMQck68bRBgTHiOMAiBwrIbZssM0+A9WwgTx9oBFubsQkbPVjAeH6D2EemQw4Q=="}]},"maintainers":[{"name":"bouzuya","email":"m@bouzuya.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resemble-0.0.1.tgz_1514642084398_0.7926684420090169"}}},"readme":"# @bouzuya/resemble\n\nAnalyse and compare images with Javascript. This project does not need canvas or any other binary dependencies.\nIt is a modification of [Resemble.js](https://github.com/Huddle/Resemble.js)\n\n## Installation\n\n`npm install @bouzuya/resemble`\n\n## Example\n\nRetrieve basic analysis on image.\n\n```javascript\nimport { loadImage, parseImage } from '@bouzuya/resemble';\n\nconst filePath = /* ... */;\nloadImage(filePath)\n  .then((image) => {\n    const data = parseImage(image);\n    console.log(data);\n    /*\n    {\n      red: 255,\n      green: 255,\n      blue: 255,\n      brightness: 255\n    }\n    */\n  });\n```\n\nUse resemble to compare two images.\n\n```javascript\nimport { loadImage, comareImages } from '@bouzuya/resemble';\n\nconst filePath1 = /* ... */;\nconst filePath2 = /* ... */;\nPromise.all([loadImage(filePath1), loadImage(filePath2)])\n  .then(([image1, image2]) => {\n    const data = comareImages(image1, image2, { ignoreColors: true });\n    console.log(data);\n    /*\n    {\n      misMatchPercentage : 100, // %\n      isSameDimensions: true, // or false\n      dimensionDifference: { width: 0, height: -1 }, // defined if dimensions are not the same\n      getImageDataUrl: function(){}\n    }\n    */\n  });\n```\n\n## LICENSE\n\nMIT\n\n- Resemble.js - James Cryer / Huddle 2014\n  https://github.com/Huddle/Resemble.js\n- node-resemble.js - Lukas Svoboda\n  http://github.com/lksv/node-resemble-js\n- @bouzuya/resemble - bouzuya <m@bouzuya.net> (http://bouzuya.net)\n  http://github.com/bouzuya/node-resemble-js\n","maintainers":[{"name":"bouzuya","email":"m@bouzuya.net"}],"time":{"modified":"2022-04-04T20:16:23.951Z","created":"2017-12-30T13:45:46.895Z","0.0.0":"2017-12-30T13:45:46.895Z","0.0.1":"2017-12-30T13:54:44.542Z"},"homepage":"https://github.com/bouzuya/resemble","keywords":["compare","comparison","diff","image"],"repository":{"type":"git","url":"git+https://github.com/bouzuya/resemble.git"},"author":{"name":"bouzuya","email":"m@bouzuya.net","url":"http://bouzuya.net/"},"bugs":{"url":"https://github.com/bouzuya/resemble/issues"},"license":"MIT","readmeFilename":"README.md"}