GithubHelp home page GithubHelp logo

thief's Introduction

Thief

Thief is a node-friendly port of Color Thief, using node-canvas under the hood.

This experimental project is no longer maintained (and has no tests). Check out get-image-colors, which is maintained, has tests, and has no non-node dependencies.

Install

npm install thief --save

Usage

Cairo has a few dependencies. You'll need to run the following to develop with thief on a Mac:

brew install cairo
brew install jpg

Check out rainbowbot, an open-source Node.js web app that uses thief.

thief's People

Contributors

zeke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

thief's Issues

Can we get a functional sample?

Hi. I love this port and am really wanting to use it in a project. I've looked through the source and the source for rainbowbot but can't seem to get a working sample going. Do you think you can hack one together? Rainbowbot doesn't actually seem to use your thief port, but rather a copy quantize...which is unfortunate.

The problem I'm encountering is

TypeError: Image or Canvas expected

from thief/index.js:40

I've tried passing it both a Canvas instance and an instance of Canvas.Image to no avail.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.