HUSL color space conversion
A color space conversion library that works with numpy. See http://husl-colors.org to learn about the HUSL color space.
Features
1. Fast conversion to RGB from HUSL and vice versa. Convert a 1080p image to HUSL in less than a second. 2. Seamless performance improvements with NumExpr, Cython, and OpenMP (whichever’s available). 3. Flexible numpy arrays as inputs and outputs. Plays nicely with OpenCV, MoviePy, etc.
Installation
virtualenv env -p python3
source env/bin/activate
pip install numpy
(optional) pip install Cython (or NumExpr, but Cython is preferred)
pip install git+https://github.com/TadLeonard/husl-numpy.git
Basic usage
to_rgb(hsl) Convert HUSL array to RGB integer array
to_husl(rgb) Convert RGB integer array or grayscale float array to HUSL
array
to_hue(rgb) Convert RGB integer array or grayscale float array to array of
hue values
More
See https://github.com/TadLeonard/husl-numpy for complete documentation.
Metadata
Release files for nphusl 1.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nphusl-1.4.1.tar.gz | 63.3 kB | Without provenance | Details for nphusl-1.4.1.tar.gz |
Release files / nphusl-1.4.1.tar.gz
| Download URL | nphusl-1.4.1.tar.gz |
|---|---|
| Size | 63.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
195b109e93494dd352848e4b3f9bed7a78d159a0c1e78f778f9db0d07e179521
|
|
BLAKE2b-256 checksum How to use checksums |
3ac6b31bb3fd183abf658386e2cd1e1daddb283564b705b0d2097f832441c6c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for nphusl 1.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.