Skip to content

Commit

Permalink
Fix bug in PlaceModifier
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed May 5, 2024
1 parent 4c1cb5a commit b9d5911
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Drivers/Imagick/Modifiers/PlaceModifier.php
Expand Up @@ -18,6 +18,7 @@ public function apply(ImageInterface $image): ImageInterface

// set opacity of watermark
if ($this->opacity < 100) {
$watermark->core()->native()->setImageAlphaChannel(Imagick::ALPHACHANNEL_OPAQUE);
$watermark->core()->native()->evaluateImage(
Imagick::EVALUATE_DIVIDE,
$this->opacity > 0 ? 100 / $this->opacity : 1000,
Expand Down

0 comments on commit b9d5911

Please sign in to comment.