mirror of
https://github.com/Intervention/image.git
synced 2025-08-19 12:11:26 +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
|
// clone output instance
|
||||||
$output = Cloner::cloneEmpty($image->core()->native());
|
$output = Cloner::cloneEmpty($image->core()->native());
|
||||||
|
|
||||||
/**
|
// Decode configured blending color
|
||||||
* Decode configured blending color
|
$blendingColor = $image->blendingColor();
|
||||||
*
|
|
||||||
* @var Color
|
|
||||||
*/
|
|
||||||
$blendingColor = $this->driver()->handleInput($this->driver()->config()->blendingColor);
|
|
||||||
|
|
||||||
// allocate blending color with slighty different alpha value
|
// allocate blending color with slighty different alpha value
|
||||||
// to avoid "overwriting" pixels with the same color in the
|
// 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
|
* Return color that is mixed with transparent areas when converting to a format which
|
||||||
* does not support transparency.
|
* does not support transparency.
|
||||||
*
|
*
|
||||||
* @deprecated Use configuration options of image manager instead
|
|
||||||
* @throws RuntimeException
|
* @throws RuntimeException
|
||||||
* @return ColorInterface
|
* @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
|
* Set blending color will have no effect unless image is converted into a format
|
||||||
* which does not support transparency.
|
* which does not support transparency.
|
||||||
*
|
*
|
||||||
* @deprecated Use configuration options of image manager instead
|
|
||||||
* @param mixed $color
|
* @param mixed $color
|
||||||
* @throws RuntimeException
|
* @throws RuntimeException
|
||||||
* @return ImageInterface
|
* @return ImageInterface
|
||||||
|
Reference in New Issue
Block a user