File manager - Edit - /var/www/payraty/helpdesk/vendor/intervention/image/src/Drivers/Gd/Modifiers/BlendTransparencyModifier.php
Back
<?php declare(strict_types=1); namespace Intervention\Image\Drivers\Gd\Modifiers; use Intervention\Image\Drivers\Gd\Cloner; use Intervention\Image\Interfaces\ImageInterface; use Intervention\Image\Interfaces\SpecializedInterface; use Intervention\Image\Modifiers\BlendTransparencyModifier as GenericBlendTransparencyModifier; class BlendTransparencyModifier extends GenericBlendTransparencyModifier implements SpecializedInterface { /** * {@inheritdoc} * * @see ModifierInterface::apply() */ public function apply(ImageInterface $image): ImageInterface { // decode blending color $color = $this->driver()->handleInput( $this->color ? $this->color : $this->driver()->config()->blendingColor ); foreach ($image as $frame) { // create new canvas with blending color as background $modified = Cloner::cloneBlended( $frame->native(), background: $color ); // set new gd image $frame->setNative($modified); } return $image; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings