color-thief-java
color-thief-java copied to clipboard
Grabs the dominant color or a representative color palette from an image. A very fast Java port of Lokesh Dhakar's JavaScript version.
For some images palette may contain invalid colors with component values > 255 Example image:  ```java BufferedImage img = ImageIO.read(new File("260x260.jpeg")); int[][] palette = ColorThief.getPalette(img, 10); palette[9][1] == 256;...
i am suggesting that there should be a simple docs of API usage. Please advise.
When executed in spring application as a utility class, garbage collection fails to clean after it. Note, this only is noticeable when you are converting tens or hundreds of images.
I tried your lib with a 7,8MB image. the operation I did was: ``` int[] result = ColorThief.getColor(bufferedImage, 0, true) ``` Here is the error I get: ``` Line |...