Giter VIP home page Giter VIP logo

color-thief-rs's Introduction

SWUbanner

vshymanskyy's GitHub stats

color-thief-rs's People

Contributors

aschey avatar julienfouilhe avatar philn avatar razrfalcon avatar valpackett avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

color-thief-rs's Issues

Very very slight differences between the output from `colorthief-py` and `color-thief`

Hi, i have seen very slight differences, 1-3 pixels from the output from colorthief-py and color-theif

For example:

(201, 160, 118)
(202, 160, 118)


[(30, 169, 166), (179, 51, 55), (219, 176, 127), (248, 233, 225), (160, 98, 87), (63, 47, 42), (131, 163, 107), (179, 119, 52), (237, 220, 155)]
[(31, 167, 164), (179, 51, 55), (219, 176, 127), (248, 233, 225), (160, 98, 87), (62, 44, 38), (131, 162, 106), (178, 118, 51), (242, 220, 157)]

This isn't much, but do you think i can help in any way to remove this difference?

Relevant codes:
https://github.com/baseplate-admin/modern_colorthief/blob/7084bf0d59f1b8ae8ca904d3cdfe938ec22e85fe/src/lib.rs#L16-L38

Strange colors output

Hello

Some of the results I'm getting dont seem correct.

For example, I use this red image I get results that dont appear to correspond to the image.

red

This is an example of the code I'm using:

let palette = match color_thief::get_palette(&img_bytes, ColorFormat::Rgb, 10, 2) {
        Ok(colors) => colors,
        Err(e) => {
            // Handle the error explicitly without using `?`
            return Err(anyhow!("Failed to get palette: {}", e));
        }
    };

And this is the json-ized result:

[
  {
    "red": 172,
    "green": 82,
    "blue": 122
  },
  {
    "red": 21,
    "green": 110,
    "blue": 153
  }
]

Release new crates version

Hello, on master you have rgb crate version 0.8 (previous was 0.7 which is yanked) but it's not released so version from crates fail to compile now.

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.