Type to search...

Pixelate

e:pixelate

Pixelation is any technique used in editing images or video, whereby an image is blurred by displaying part or all of it at a markedly lower resolution.

Aliases

  • e:px

Parameters

  • integer [px], min 2, max 1000

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 a pixelate effect

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

Set the width to 300 px and add a pixelate effect to the faces only

w:300_g:faces_e:px:5
use shardimage\shardimagephp\factories\Transformation;
$transformations = (new Transformation())->width(300)->gFaces()->pixelate(5);
Table of contents