small_light_sigma_max

The `small_light_sigma_max` directive sets the maximum sigma value for the gaussian blur applied to images during dynamic transformations in NGINX.

Syntaxsmall_light_sigma_max value;
Defaultnone
Contexthttp, server, location
Arguments1

Description

The small_light_sigma_max directive is a configuration parameter used in the 'Dynamic image transformation module for NGINX'. This directive allows users to define the maximum sigma value utilized for gaussian blurring of images. A larger sigma value results in a higher level of blurriness, which can be beneficial for certain image processing effects but may also degrade image quality if set too high. The sigma value directly influences how much an image's pixels are blended with their neighboring pixels, ultimately affecting the visual output.

When using this directive, it is advisable to pick a sigma value that balances desired blur effects with the need for clarity. The parameter is numeric and can be adjusted based on the specifics of the images being processed and the overall performance requirements of the server. Care must be taken when setting this value too high, as it may lead to performance issues due to increased processing time for each image transformation request. Users should also consider other related directives that work in conjunction with this one to achieve optimal results for dynamic image manipulation.

The directive can be placed in various contexts, including http, server, or location contexts, thus offering flexibility in how it is applied across different server blocks and locations. This versatility allows for targeted image processing configurations that are specific to given applications or endpoints within an NGINX setup.

Config Example

http {
    server {
        location /images/ {
            small_light;
            small_light_sigma_max 5;
        }
    }
}

Setting a sigma value too high can lead to performance degradation during image processing.

Make sure that the necessary image processing library is included in your NGINX build to support this directive.

Check for compatibility with other image processing directives to avoid unexpected results.

← Back to all directives