Simple CLI tool to spatially equalize image luminance
Project description
Eqlm
Simple CLI tool to spatially equalize image luminance
Examples
eqlm images/macaron.jpg -n 3 2 -t 0.8 -c
Source | Result |
---|---|
Install
pip3 install eqlm
Usage
The main program can be invoked either through the eqlm
command or through the Python main module option python3 -m eqlm
.
usage: eqlm [-h] [-v] [-m {luminance,brightness,saturation,lightness}]
[-n M N] [-t RATE] [-c] [-e] [-u] [-g [GAMMA]] [-d {8,16}] [-x]
IN_FILE [OUT_FILE]
Options
positional arguments:
IN_FILE input image file path (use '-' for stdin)
OUT_FILE output PNG image file path (use '-' for stdout)
(default: Auto)
options:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-m {luminance,brightness,saturation,lightness}, --mode {luminance,brightness,saturation,lightness}
processing mode (default: luminance)
-n M N, --divide M N divide image into MxN (Horizontal x Vertical) blocks
for aggregation (default: (2, 2))
-t RATE, --target RATE
set the target rate for the output level, ranging from
0.0 (minimum) to 1.0 (maximum) (default: Average)
-c, --clamp clamp the level values in extrapolated boundaries
(default: False)
-e, --median aggregate each block using median instead of mean
(default: False)
-u, --unweighted disable weighting based on the alpha channel
(default: False)
-g [GAMMA], --gamma [GAMMA]
apply inverse gamma correction before process
[GAMMA=2.2] (default: None)
-d {8,16}, --depth {8,16}
bit depth of the output PNG image (default: 8)
-x, --no-orientation ignore the Exif orientation metadata (default: False)
License
GNU Affero General Public License v3.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
eqlm-0.2.0.tar.gz
(4.5 MB
view details)
Built Distribution
eqlm-0.2.0-py3-none-any.whl
(21.2 kB
view details)
File details
Details for the file eqlm-0.2.0.tar.gz
.
File metadata
- Download URL: eqlm-0.2.0.tar.gz
- Upload date:
- Size: 4.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54c441de9f1e4f91097fcc90c98e1fd646a31de37fd2cb10f64cbc69d4b9b24f |
|
MD5 | 66c35beb21879e0206818f66c066af22 |
|
BLAKE2b-256 | 30e900e14dd778843d87de80c16fb0ae74baebf2f19e05fe17b7d322eae0272e |
File details
Details for the file eqlm-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: eqlm-0.2.0-py3-none-any.whl
- Upload date:
- Size: 21.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8e79a92fb88b4bb9634e48c1178b3cd4db17a918467e77eb435326f9a87ba61 |
|
MD5 | aa5d97274f7aa95aaf64b00dcf4949c1 |
|
BLAKE2b-256 | 610dbb61ce28de089bd3eba43c3a1a797fe9d36dcb5cb27f65f03ae589d922cf |