Skip to content

Commit

Permalink
Fix ImagickTintEffect opacity value on image transform
Browse files Browse the repository at this point in the history
  • Loading branch information
veve40 committed Apr 14, 2021
1 parent 392dd51 commit ba8532c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Charcoal/Image/Imagick/Effect/ImagickTintEffect.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ public function process(array $data = null)
if ($data !== null) {
$this->setData($data);
}

$color = new ImagickPixel($this->color());
$opacity = new ImagickPixel(sprintf('rgba(128,128,128,%f)', $this->opacity()));
$opacity = new ImagickPixel(sprintf('rgba(255,255,255,%f)', $this->opacity()));

if ($this->midtone() === true) {
$this->image()->imagick()->tintImage($color, $opacity);
Expand Down

0 comments on commit ba8532c

Please sign in to comment.