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