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:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user