opacity
Change the image opacity.
opacity ( ImageInterface &$image, float $opacity ): EditorInterface
Parameters
image
Instance of Image.
opacity
The opacity level where 1.0 is fully opaque and 0.0 is fully transparent.
Returns
An instance of Editor.Warning: On GD editor, this function loops on each pixel manually which can be slow on large images.