1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-01 03:20:17 +02:00

Reactivate blending color methods on ImageInterface

This commit is contained in:
Oliver Vogel
2024-08-04 08:41:09 +02:00
parent 2adc3b45de
commit 68479181fc
2 changed files with 2 additions and 8 deletions

View File

@@ -53,12 +53,8 @@ class PngEncoder extends GenericPngEncoder implements SpecializedInterface
// 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

View File

@@ -254,7 +254,6 @@ interface ImageInterface extends IteratorAggregate, Countable
* 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
*/
@@ -264,7 +263,6 @@ interface ImageInterface extends IteratorAggregate, Countable
* 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