- A `ColorExtractor`-protocol that defines an interface for color extractors. - Create a `ColorExtractorBase` abstract class that extractors can inherit from to implement the interface.
Changed - The implementation of `median_cut_extraction` and `k_means_extraction` is now implemented as in terms of subclasses of the `ColorExtractorBase`
4.0.0
Changed
- Overhauled the CLI to use the `typer` library for a more user-friendly experience. Note this is a breaking change for CLI users. Run `pylette --help` for more information.
3.0.2
Fixed
- Fixed a bug where the CLI did not respect the `--colorspace` argument when extracting colors.
3.0.1
Fixed - Fixed a bug where the color frequencies of colors in a palette were not summing to one when using the Median Cut algorithm.
3.0.0
Changed - Changed the `image` argument to the `extract_color` function to accept: - A path to an image file, as a string or a pathlike. - An URL to an image file, as a string. - A byte stream of an image file, as a bytes object. - A numpy array of an image file, as a numpy array. -
2.3.0
- Added `image_array` to the `extract_color` function, allowing the user to specify an image as a numpy array.