Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/baseplate-admin/modern_colorthief
Colorthief but with modern codes
https://github.com/baseplate-admin/modern_colorthief
colorthief mmcq pyo3 rust
Last synced: 2 months ago
JSON representation
Colorthief but with modern codes
- Host: GitHub
- URL: https://github.com/baseplate-admin/modern_colorthief
- Owner: baseplate-admin
- License: mit
- Created: 2023-11-06T05:49:33.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-04T23:31:42.000Z (4 months ago)
- Last Synced: 2024-09-16T14:32:43.242Z (3 months ago)
- Topics: colorthief, mmcq, pyo3, rust
- Language: Rust
- Homepage: https://modern-colorthief.readthedocs.io/
- Size: 1.24 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Documentation Status](https://readthedocs.org/projects/modern-colorthief/badge/?version=latest)](https://modern-colorthief.readthedocs.io/en/latest/?badge=latest) [![Downloads](https://static.pepy.tech/badge/modern_colorthief)](https://pepy.tech/project/modern_colorthief) [![Pypi Badge](https://img.shields.io/pypi/v/modern_colorthief.svg)](https://pypi.org/project/modern_colorthief/)
# Introduction :
[`ColorThief`](https://github.com/fengsp/color-thief-py) reimagined
## Why use `modern_colorthief` ?
- It's backend is written in `rust`
## Why shouldn't you use `modern_colorthief` ?
- `modern_colorthief` does not support EOL python versions.
## Requirements :
- Python 3
## Examples :
Here is a minimal example :
```python
from modern_colorthief import get_colorpath = ...
print(get_color(path, 10))
```
If you want a comprehensive example please visit the test file
## Migration from `colorthief` :
```diff
- from colorthief import ColorThief
+ from modern_colorthief import get_color, get_paletteimage = '' # Path to a image
- ColorThief(image).get_color()
+ get_color(image)- ColorThief(image).get_palette()
+ get_palette(image)
```## Used Internally by :
- [`coreproject`](https://github.com/baseplate-admin/coreproject)
## Contributing :
If you like this project add a star.
If you have problems or suggestions please put them in the [Issue Tracker](https://github.com/baseplate-admin/modern_colorthief/issues)
If you like to add features. Fork this repo and submit a Pull Request. 😛# Roadmap :
You tell me. If i have free time, I will implement it.