Type to search...

Greyscale

Greyscale (or grayscale) image is one in which the value of each pixel is a single sample representing only a certain amount of light, that is, it carries only intensity information.

Aliases

  • e:greyscale
  • e:gs

Parameters

  • This transformation does not include parameters.

Limitations

  • Applicable only to images smaller than 25 mega pixels.

Dependencies

  • This transformation does not have any dependencies.

Examples

See the following examples about the possible ways of usage.

Set the width to 200 px and add greyscale effect.

w:200_e:gs
use shardimage\shardimagephp\factories\Transformation;
$transformations = (new Transformation())->width(200)->grayscale();

Set the width to 200 px and add greyscale effect to the face only.

w:200/e:gs_g:face
use shardimage\shardimagephp\factories\Transformation;
$transformations = (new Transformation())->width(200)->group()->grayscale()->gFace();
Table of contents