Skip to content

Commit

Permalink
Reactivate blending color methods on ImageInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Aug 4, 2024
1 parent 2adc3b4 commit 6847918
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 2 additions & 6 deletions src/Drivers/Gd/Encoders/PngEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,8 @@ private function prepareOutput(ImageInterface $image): GdImage
// clone output instance
$output = Cloner::cloneEmpty($image->core()->native());

/**
* Decode configured blending color
*
* @var Color
*/
$blendingColor = $this->driver()->handleInput($this->driver()->config()->blendingColor);
// Decode configured blending color
$blendingColor = $image->blendingColor();

// allocate blending color with slighty different alpha value
// to avoid "overwriting" pixels with the same color in the
Expand Down
2 changes: 0 additions & 2 deletions src/Interfaces/ImageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ public function pickColors(int $x, int $y): CollectionInterface;
* Return color that is mixed with transparent areas when converting to a format which
* does not support transparency.
*
* @deprecated Use configuration options of image manager instead
* @throws RuntimeException
* @return ColorInterface
*/
Expand All @@ -264,7 +263,6 @@ public function blendingColor(): ColorInterface;
* Set blending color will have no effect unless image is converted into a format
* which does not support transparency.
*
* @deprecated Use configuration options of image manager instead
* @param mixed $color
* @throws RuntimeException
* @return ImageInterface
Expand Down

0 comments on commit 6847918

Please sign in to comment.