{"_id":"color-thief","_rev":"41-80336ebe0513f3036fac9da848de57c2","name":"color-thief","description":"A script for grabbing the color palette from an image. Uses Javascript and the canvas tag to make it happen.","dist-tags":{"latest":"2.2.5"},"versions":{"2.0.1":{"name":"color-thief","version":"2.0.1","description":"A script for grabbing the color palette from an image. Uses Javascript and the canvas tag to make it happen.","main":"js/color-thief.js","repository":{"type":"git","url":"git://github.com/null2/color-thief.git"},"author":"","license":"BSD-2-Clause","bugs":{"url":"https://github.com/null2/color-thief/issues"},"dependencies":{"canvas":"~1.1.2"},"_id":"color-thief@2.0.1","dist":{"shasum":"19b5e94f4ea328b4a159b3562dfc226f09b4d8cf","tarball":"https://registry.npmjs.org/color-thief/-/color-thief-2.0.1.tgz","integrity":"sha512-vWjUpOTXwXGtktp6LZL25sRVQpcUIztP+l6wAeEyYuPuygN4bhcbTEFhIpE2DQvlJmG300mZRAUH/1bI4QdHxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9Z5uDGIayanSYOVEoJn1OPPD8XFnnu4nylEZVmEkzxQIgI0NiydXqea+r1AICjYzMUeoyQJMjnFZc98MjC9aiyI8="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jo","email":"schmidt@netzmerk.com"},"maintainers":[{"name":"jo","email":"schmidt@netzmerk.com"}],"directories":{}},"2.1.0":{"name":"color-thief","version":"2.1.0","description":"A script for grabbing the color palette from an image. Uses Javascript and the canvas tag to make it happen.","main":"js/color-thief.js","repository":{"type":"git","url":"git://github.com/null2/color-thief.git"},"scripts":{"test":"nodeunit test/*-test.js --reporter minimal"},"author":"","license":"BSD-2-Clause","bugs":{"url":"https://github.com/null2/color-thief/issues"},"dependencies":{"canvas":"~1.1.2"},"devDependencies":{"nodeunit":"~0.8.2"},"homepage":"https://github.com/null2/color-thief","_id":"color-thief@2.1.0","_shasum":"c48943c9e2b42f9ce10bdbf82500770b739dea0b","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jo","email":"schmidt@netzmerk.com"},"maintainers":[{"name":"jo","email":"schmidt@netzmerk.com"}],"dist":{"shasum":"c48943c9e2b42f9ce10bdbf82500770b739dea0b","tarball":"https://registry.npmjs.org/color-thief/-/color-thief-2.1.0.tgz","integrity":"sha512-ksv3ZIvrnWcjW7oMHsZAB0NC+1gjVDhjVJvuw6WZlLCXVLAWacZGVICjUTOGbCxLxjyuui9318fFBjvx70oSgg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBc9NMvZvZmVQhJJlrV6AvtfS+ohVEfPpf2ryToa0kgnAiBzE6FK5tex4QlypHmnOtfuXnvN/JDap72CJjmPTkB37Q=="}]},"directories":{}},"2.2.0":{"name":"color-thief","version":"2.2.0","description":"A script for grabbing the color palette from an image. Uses Javascript and the canvas tag to make it happen.","main":"js/color-thief.js","repository":{"type":"git","url":"git://github.com/null2/color-thief.git"},"scripts":{"test":"nodeunit test/*-test.js --reporter minimal"},"author":"","license":"BSD-2-Clause","bugs":{"url":"https://github.com/null2/color-thief/issues"},"dependencies":{"canvas":"~1.1.2"},"devDependencies":{"nodeunit":"~0.8.2"},"homepage":"https://github.com/null2/color-thief","_id":"color-thief@2.2.0","dist":{"shasum":"f28786a6376d451d39d853a5295472daa3f98764","tarball":"https://registry.npmjs.org/color-thief/-/color-thief-2.2.0.tgz","integrity":"sha512-3U5TQlleKV1TrPy1hoGExPt/yVC9C/FVWZMMRoniffQ+32Or8UAn7gZ5w7XtvzdJYRN59XuTXW5TiPU9bIVOeg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDf7/GUoYCMqn9nJsNWWLRR8rmO2Y8kM087Gbd2Gb0aHQIhAPO1h9v/mbqSkRjGH7wlSsnJ15P8+nuNh0iRDCo4AlqT"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"jo","email":"schmidt@netzmerk.com"},"maintainers":[{"name":"jo","email":"schmidt@netzmerk.com"}],"directories":{}},"2.2.1":{"name":"color-thief","version":"2.2.1","description":"A script for grabbing the color palette from an image. Uses Javascript and the canvas tag to make it happen.","main":"js/color-thief.js","repository":{"type":"git","url":"git://github.com/null2/color-thief.git"},"scripts":{"test":"nodeunit test/*-test.js --reporter minimal"},"author":"","license":"BSD-2-Clause","bugs":{"url":"https://github.com/null2/color-thief/issues"},"dependencies":{"canvas":"~1.2.0"},"devDependencies":{"nodeunit":"~0.8.2"},"gitHead":"cc4161185651730320e5a10959990684114465d0","homepage":"https://github.com/null2/color-thief#readme","_id":"color-thief@2.2.1","_shasum":"31807b5536463aa13a60987da56a441e70e61cd4","_from":".","_npmVersion":"3.3.3","_nodeVersion":"4.1.2","_npmUser":{"name":"jo","email":"schmidt@netzmerk.com"},"dist":{"shasum":"31807b5536463aa13a60987da56a441e70e61cd4","tarball":"https://registry.npmjs.org/color-thief/-/color-thief-2.2.1.tgz","integrity":"sha512-zqE7x/ilqdQkYUwFRmNTJLJnZB5423/MdXwQehN1osJhUsNemBMQxRcBTrrQ+gm38MDZPm98B996ks4BrH0c0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSlcfuWzquf5FvIFwatZ1BUZJE+SKypvBV24V4f7njFwIhALXSQOEMmw43F1QsgVZ3L652okPiB3ff2IWpad0SKc3C"}]},"maintainers":[{"name":"jo","email":"schmidt@netzmerk.com"}],"directories":{}},"2.2.2":{"name":"color-thief","version":"2.2.2","description":"A script for grabbing the color palette from an image. Uses Javascript and the canvas tag to make it happen.","main":"js/color-thief.js","repository":{"type":"git","url":"git://github.com/null2/color-thief.git"},"scripts":{"test":"nodeunit test/*-test.js --reporter minimal"},"author":"","license":"BSD-2-Clause","bugs":{"url":"https://github.com/null2/color-thief/issues"},"dependencies":{"canvas":"~1.2.0"},"devDependencies":{"nodeunit":"~0.8.2"},"gitHead":"12e99cd62c87b2d936be767d75bcf2f2ec97cc0d","homepage":"https://github.com/null2/color-thief#readme","_id":"color-thief@2.2.2","_shasum":"775e99a50f195b198f844b94b3f6c38deb1ca424","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.10.1","_npmUser":{"name":"jo","email":"schmidt@netzmerk.com"},"dist":{"shasum":"775e99a50f195b198f844b94b3f6c38deb1ca424","tarball":"https://registry.npmjs.org/color-thief/-/color-thief-2.2.2.tgz","integrity":"sha512-R97SKRhYD/oxd3vfHlnfyMfpyosAt2rJeltbCaqw+4H4kJKzkwdwf9ccTCc79ftEtA1s7yM3XFF5BN48/p8gUA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEwz3k5uUfVPbpIh/XOkQJh9BIKMZ6bTZB78WKmwhuk/AiA56LrYJk+BtDRaW+vqEx+jpnYg6n4efw+ZZrsZ2LI9Ag=="}]},"maintainers":[{"name":"arglaaa","email":"andi@null2.net"},{"name":"jo","email":"schmidt@netzmerk.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/color-thief-2.2.2.tgz_1459977480050_0.6983626794535667"},"directories":{}},"2.2.3":{"name":"color-thief","version":"2.2.3","description":"A script for grabbing the color palette from an image. Uses Javascript and the canvas tag to make it happen.","main":"js/color-thief.js","repository":{"type":"git","url":"git://github.com/null2/color-thief.git"},"scripts":{"test":"nodeunit test/*-test.js --reporter minimal"},"author":"","license":"BSD-2-Clause","bugs":{"url":"https://github.com/null2/color-thief/issues"},"dependencies":{"canvas":"~1.6.11"},"devDependencies":{"nodeunit":"~0.8.2"},"gitHead":"03d458e3e208739a330615534ae87e370f4d7f6f","homepage":"https://github.com/null2/color-thief#readme","_id":"color-thief@2.2.3","_npmVersion":"6.1.0","_nodeVersion":"8.11.2","_npmUser":{"name":"jo","email":"schmidt@netzmerk.com"},"dist":{"integrity":"sha512-A7IhVFxt+CtaoqAa4yzCRVnE2YUL+GkbdIZl1ZxGIzMaou9qP10E6oT0lrqv8mtv9mMWNd8Z3bJtWEJRdFRTTA==","shasum":"7d8e3c1ff6c9e773b00ebbec589e4e086232337d","tarball":"https://registry.npmjs.org/color-thief/-/color-thief-2.2.3.tgz","fileCount":19,"unpackedSize":466259,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbF47GCRA9TVsSAnZWagAAHGsP/ik4bnO1DstkzFKQaTgK\nq4OHXrgEKUCU6fLeJDNHeSXi5/ddpF9fz+bOw4SBk5YKFXIqSChJIalQ1amn\nLD6AcPmdZLQJm7mnjhzxkEERh+huX0zjzYVO2M8QQRPnhjkapg9O2EIwvpQb\n9WYQxOD3jaa5qlgPm64r1N0ucRU96o4TACJ886t33W9HERBZfbn4WqWxrjXi\n+t9E2mji7imLQ+xNsGOpcOramxXOqL2XxvrfAQFp34mSF8CrEOGhGoC8gwTK\neFHJw3Yn3wC7t73USk61RKZmjtkaKU/9baNdCkrUIiMpU5l7UMR6yWMnlVSR\naXNWmh79LY/0QKTk+BCWhezu+vJ5/q8DtCdGt4ZsNgEL1muiqVaJlMAY3f3c\nvZq7TJjYB6g55T6Eio+seiJ/MLMwxmzPvXYaS8HtC2VHagmbelUaJ9QHQIwl\nMclxlopWL8WAg++4Rbol1HG6rIIPhSzrOkIRF2gJrn8sTZYR7FjJImllMidb\nJzOvTT7ZDFEq5mOK7uL0RmU4dOthgbyAoLhey+6gtj9eGkYn31yBcWuP4pZF\n7AXkEka+naEkmFC/1Wh99m2xG//2wyrS/memLp8SrGwiBsQNpilbi7H/toX1\n1O/oJKTA0TUgCk8I0N8wkGO1XZxC7yQ1a7ZenLd/23NZCslPGixhlhd/hChP\nXzkr\r\n=HBMF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFrcdFTP1T579yEFXKQs1H7jypOgqIXNYHWz5WkRGPZmAiAQgttq3oLnikO0JGk0F6EaVJrw8Vs/eNTMP3gCyFn0EQ=="}]},"maintainers":[{"name":"arglaaa","email":"andi@null2.net"},{"name":"jo","email":"schmidt@netzmerk.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-thief_2.2.3_1528270533217_0.9190660809471496"},"_hasShrinkwrap":false},"2.2.4":{"name":"color-thief","version":"2.2.4","description":"A script for grabbing the color palette from an image. Uses Javascript and the canvas tag to make it happen.","main":"js/color-thief.js","repository":{"type":"git","url":"git://github.com/null2/color-thief.git"},"scripts":{"test":"nodeunit test/*-test.js --reporter minimal"},"author":"","license":"BSD-2-Clause","bugs":{"url":"https://github.com/null2/color-thief/issues"},"dependencies":{"canvas":"~2.5.0"},"devDependencies":{"nodeunit":"~0.8.2"},"gitHead":"5a6e1c792cb7153b2d7f621d4183378774198ac8","homepage":"https://github.com/null2/color-thief#readme","_id":"color-thief@2.2.4","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-Akdd7Me7wNqSwuG2RABgcE04xO7/CTODp26tz0pgtZDhgVhnQUER2vjrBMeOKho5kaxeuclGwgFXuBw9aTE+sA==","shasum":"fbdcf7336241286b0f5a458767e4d08718899246","tarball":"https://registry.npmjs.org/color-thief/-/color-thief-2.2.4.tgz","fileCount":19,"unpackedSize":466258,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc3IAyCRA9TVsSAnZWagAA8d4P/2ZJEcBApWSV++ZzRQk0\niC1+aepAXTQiwb63Ci/6pnTdpLmPAPPdz9n4GIKHi3UF4xSCRmvLuzcAwTCX\nppgKieMec2xSpdoYbzoDO9Hf87TpvNgD1mLI3AC4E+M/lF80g+kIua3snUPN\nYu8L6fkoDBvf0icQRzVfsw9u+lYKsYX8oRykZFimCGtSqD2VuRIhbR8C2AlS\nQDE1FHd/C4tJ79xu5PerImDvDlrnPW5l/YFUfdqUeh33Rl32iemgm1czjVjY\ni+ulHdx1DYc3OnFtzOVy/oqeSo8U6RhahG6AuM5wxXTkPlFvfPQjWREI1kTV\nCxK+WBO0D0wIG9fKeSucO8njQRlMSE+HFmtJXCQ8zuHs+klh8LCWImfDWu7v\nJWboTwSrRr/X00rdYniHc8Z82CEp+g+MOhSG++3lxfFpraZQkbVXZfI/b1hR\nyewDnByAwMSJO/JII2K1Qa1ewCi8fn9bVai7wTIzZWBKWTSNiagXqb/o9qGl\nmXF7/y8Rwf4Tl1lKFND1i/KE8oNfbypJdCxF3xzY6tcy34QTukA1gSC7n/n/\n5VBHsaSpj6dHk9SyBC92A9ZWsTsMIAJLoBCble81laUu+8PKJE+PFXmwlUHL\n3g2x5eDqRTQqAuLiS0ayEXdni9POYUm+l+xRu3tHjKfBYIw/o1ia3ynyDqm5\nnvDY\r\n=MeIS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAVSNdsbTudfwYmkxdh0pxbbP8GnhcDqDCkEGImcsiOwIgThIDDAu2nPxcvrF8BDvrtHRTtO5/gZmc62iVhIxKyuo="}]},"maintainers":[{"name":"arglaaa","email":"andi@null2.net"},{"name":"jo","email":"schmidt@netzmerk.com"}],"_npmUser":{"name":"jo","email":"schmidt@netzmerk.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-thief_2.2.4_1557954609392_0.4814755537516606"},"_hasShrinkwrap":false},"2.2.5":{"name":"color-thief","version":"2.2.5","description":"A script for grabbing the color palette from an image. Uses Javascript and the canvas tag to make it happen.","main":"js/color-thief.js","repository":{"type":"git","url":"git://github.com/null2/color-thief.git"},"scripts":{"test":"nodeunit test/*-test.js --reporter minimal"},"author":"","license":"BSD-2-Clause","bugs":{"url":"https://github.com/null2/color-thief/issues"},"dependencies":{"canvas":"~2.5.0"},"devDependencies":{"nodeunit":"~0.8.2"},"gitHead":"6a0215d8eab4ea2c48b4dcaba1979a8d3cd38cc4","homepage":"https://github.com/null2/color-thief#readme","_id":"color-thief@2.2.5","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-LMYgiwDeN9dlfQFBO9c5nGQyVvVTcUbZBnmITL0AnTXgJfGAKnqEJjn0K/0t9FQD3LRaGGS1Z1jo+RapK3I64Q==","shasum":"1dbc3bad2c9cba6813aca04996b3828762817a49","tarball":"https://registry.npmjs.org/color-thief/-/color-thief-2.2.5.tgz","fileCount":19,"unpackedSize":466267,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc85lMCRA9TVsSAnZWagAANhYP/j0ixc02imECXFdAqqjs\nm5WiQ/8jT+qd9yMvdUrq7rlykJg8wIFAsNuYbirlHyMLz0Lk7JHmTRzL1Lui\nTzvq5x/Vs7U7PA40COuxPH4I5OQSZ1Iyds+wx0+RV5Sf/SdLgijp7yItYL2W\nDRT5LRgUPfbWUjNB2H7EBaHv3RHBojx1NjF6z/cPPc6uWGqeMXrOmwrRqvcM\naV09v9IZ2fvzhIf9lHkSJLAxAhLqIRK5hMgjBGSX+xHfQXpOWvippYDukUg2\nyRN1yXUj0GEbvqVxcnBz6Hab/ghDp/5gqsWG0ElDkp1xObMnbioeGKdK5RqN\nm6Y430GqBeb7tPyEYsUv3hIGr8uBKnRcaXbUSG3lSnY+HIY4u8F+Y+fcZbmI\nkNYYTLSRShTIR+K0C2Z9O7fgq7FnoJ9+mfvj4RvB1PYGir7tFl9otAsg3j9u\ninN/CHHAj4oS15R2x1e7zpVL5rYIzw/wzLgyPPMmXKms0u2X3jTTjEVGKRll\nn8yS0phzFI0lF4X3sMgIELSv+jWdSZOmMJ4Jfiqe14HfYZbDYvvDLFQwAVsp\ngXUi0hEhJzwtqxGmioRxT4wOOHzdzq89ooDkqoRZyUdbo0EoYA62R5p+n7l6\n0U783vd6MVttry+1UzcfOpjZm5kseNvByxG5OPJAfqnBHBMqfYgeAzISRoAG\n/1j4\r\n=ezaK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGoPMqQzA8Rsj8Og6QJdFWd1RSado3rVw8uFJsvikIvgAiAvtQzM7YBNJZRXWDc94UwtTKRetDsL52RxvmQoc+iDag=="}]},"maintainers":[{"name":"arglaaa","email":"andi@null2.net"},{"name":"jo","email":"schmidt@netzmerk.com"}],"_npmUser":{"name":"jo","email":"schmidt@netzmerk.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-thief_2.2.5_1559468364172_0.756636967812663"},"_hasShrinkwrap":false}},"readme":"# Color Thief\n\nA script for grabbing the color palette from an image. Uses Javascript and the canvas tag to make it happen.\n\n[See a Demo](http://lokeshdhakar.com/projects/color-thief) | [Read more on my blog](http://lokeshdhakar.com/color-thief)\n\n## How to use\n\n### Get the dominant color from an image\n```js\nvar colorThief = new ColorThief();\ncolorThief.getColor(sourceImage);\n```\n\n```js\ngetColor(sourceImage[, quality])\nreturns {r: num, g: num, b: num}\n```\n\n### Build a color palette from an image\n\nIn this example, we build an 8 color palette.\n\n```js\nvar colorThief = new ColorThief();\ncolorThief.getPalette(sourceImage, 8);\n```\n\n```js\ngetPalette(sourceImage[, colorCount, quality])\nreturns [ [num, num, num], [num, num, num], ... ]\n```\n\n### Node.js\nInstall the module via npm\n```bash\nnpm install color-thief\n```\nAnd use it:\n```js\nvar ColorThief = require('color-thief');\n```\n\n### Node Tests\nRun the node tests via `npm test`\n\n## Credits and license\n\n### Author\nby Lokesh Dhakar  \n[lokeshdhakar.com](http://www.lokeshdhakar.com)  \n[twitter.com/lokesh](http://twitter.com/lokesh)\n\n### Thanks\n* Nick Rabinowitz - For creating quantize.js.\n* John Schulz - For clean up and optimization. @JFSIII\n* Nathan Spady - For adding drag and drop support to the demo page.\n\n### License\nLicensed under the [Creative Commons Attribution 2.5 License](http://creativecommons.org/licenses/by/2.5/)\n\n* Free for use in both personal and commercial projects.\n* Attribution requires leaving author name, author homepage link, and the license info intact.\n","maintainers":[{"name":"arglaaa","email":"andi@null2.net"},{"name":"jo","email":"schmidt@netzmerk.com"}],"time":{"modified":"2022-06-13T06:31:37.200Z","created":"2013-12-02T10:56:22.669Z","2.0.1":"2013-12-02T10:56:27.031Z","2.1.0":"2014-05-23T08:18:45.173Z","2.2.0":"2014-10-29T09:46:57.855Z","2.2.1":"2015-10-13T16:29:31.483Z","2.2.2":"2016-04-06T21:18:02.560Z","2.2.3":"2018-06-06T07:35:33.291Z","2.2.4":"2019-05-15T21:10:09.607Z","2.2.5":"2019-06-02T09:39:24.372Z"},"repository":{"type":"git","url":"git://github.com/null2/color-thief.git"},"homepage":"https://github.com/null2/color-thief#readme","bugs":{"url":"https://github.com/null2/color-thief/issues"},"license":"BSD-2-Clause","readmeFilename":"README.md","users":{"mikkoh":true,"emanuelkuhn":true,"chrisgco":true,"davebowker":true,"mystaticself":true,"alcovegan":true,"guim0ve":true,"shanewholloway":true,"lolitaloco":true,"hoxtoncreatives":true,"leeroy":true,"dyc5828":true,"00steinsgate00":true,"dheerajvs":true,"stevomccormack":true,"alexyan":true,"willgopublic":true,"kristof0425":true,"crouman":true,"hipperelement":true,"martinandersen3d":true,"grevzi":true,"fmakareev":true}}