color-thief-java icon indicating copy to clipboard operation
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.

Results 4 color-thief-java issues
Sort by recently updated
recently updated
newest added

For some images palette may contain invalid colors with component values > 255 Example image: ![260x260](https://user-images.githubusercontent.com/7975352/104198447-4acfd100-5437-11eb-9858-e79eef04aef1.jpeg) ```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 |...