Type to search...

Opacity

e:opacity

The opacity property specifies the opacity/transparency of an element.

Aliases

  • e:o

Parameters

  • integers
  • 0-100: 0 completely transparent, 100: not at all transparent

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 the opacity to 30%

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

Set the width to 200 px and the opacity to 50% with yellow color

w:200_e:o:50_bg:yellow
use shardimage\shardimagephp\factories\Transformation;
$transformations = (new Transformation())->width(200)->opacity(50)->background('yellow');
Table of contents