Skip to main content

Lightness Range

This rule checks that the lightness values of pixels in an image fall within the specified range.

Parameter table

paramunitrequireddescription
minLightness%noMinimum lightness value in percentage (minLightness).
maxLightness%noMaximum lightness value in percentage (maxLightness).

Detailed description

Ensures that the average lightness value across the entire image falls within the specified range ([minLightness, maxLightness]) in percentage.

Correction

The correction process adjusts lightness values to fit within the specified lightness range.

How to setup

This rule evaluates whether an image's lightness values conform to specified constraints. Key parameters include:

  • minLightness: Minimum lightness value in percentage.
  • maxLightness: Maximum lightness value in percentage.

At least one argument is required.

Creator tips

  • Analyze the image's color distribution to determine an appropriate lightness range.
  • Use image editing tools to adjust lightness levels.

Examples

valuevalidmaxLightnessdescription
dark image30The image should have a dark and low-key appearance.