Skip to main content

Simple CLI tool to spatially equalize image luminance

Project description

Eqlm

Simple CLI tool to spatially equalize image luminance

Example

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] [-e] [-u] [-g [GAMMA]] [-d {8,16}]
            IN_FILE [OUT_FILE]

Simple CLI tool to spatially equalize image luminance

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 blocks for aggregation
                        (note that it doesn't respect Exif orientation) (default: (2, 2))
  -t RATE, --target RATE
                        output level target rate, 0.0 (min) to 1.0 (max) (default: Average)
  -e, --median          aggregate each block using median (default: False)
  -u, --unweighted      disable alpha channel weighting (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)

License

GNU Affero General Public License v3.0

Project details


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.1.0.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

eqlm-0.1.0-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file eqlm-0.1.0.tar.gz.

File metadata

  • Download URL: eqlm-0.1.0.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for eqlm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e79505e3b90fb913853490b0c9189cbc0a1bc708a00afa3d5f1c38fece1766ee
MD5 580166e3c36cb01e342c99f64e88ef2a
BLAKE2b-256 96b0a9b506c5b93f50e2820383832a4e90d72ffb5ee01ae711571633cabd6c2d

See more details on using hashes here.

File details

Details for the file eqlm-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: eqlm-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for eqlm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 625bf37ed754b6bff17aeccf161e440ec6ca10d9c5d58c3b3502e028e4d9b20e
MD5 a4acdaad6559bb9a315b85f6954625b1
BLAKE2b-256 1deb0161dbeb892dd0a9ed16319d943810e6981725832648d25c6bb7ce537602

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page