From c64fee6ffed0dbe0684c424582aafcd9f6755501 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sat, 1 Jun 2024 01:39:47 +0200 Subject: [PATCH] Document raster PROCESSING GAMMA option Refs https://github.com/MapServer/MapServer/pull/7069 --- en/input/raster.txt | 16 ++++++++++++++++ en/mapfile/layer.txt | 3 +++ 2 files changed, 19 insertions(+) diff --git a/en/input/raster.txt b/en/input/raster.txt index 9746c56f6bd..399cf6cd6f1 100644 --- a/en/input/raster.txt +++ b/en/input/raster.txt @@ -468,6 +468,22 @@ are supported in MapServer 4.0 and newer. PROCESSING "EXTENT_PRIORITY=WORLD" +.. index:: + triple: LAYER; PROCESSING; GAMMA + +**GAMMA=** + This directive (MapServer 8.4+) instructs the GDAL reader to apply a + `gamma correction `__ step. + The default value is 1.0 (no gamma correction). + It is performed after classification, if any. + It does not apply to raw rendering. + + Example: + + :: + + PROCESSING "GAMMA=0.75" + .. index:: triple: LAYER; PROCESSING; LOAD_FULL_RES_IMAGE diff --git a/en/mapfile/layer.txt b/en/mapfile/layer.txt index 387012ca5c9..4cbcef5bb26 100644 --- a/en/mapfile/layer.txt +++ b/en/mapfile/layer.txt @@ -1383,6 +1383,9 @@ PROCESSING [string] that appear between adjacent polygons. A value of 0.5 is usually good enough. + Note that starting with MapServer 8.4, a GAMMA processing option is + also available for rasters, but its default value is 1.0. + .. code-block:: mapfile PROCESSING "GAMMA=0.5"