Skip to content

Commit

Permalink
Edit comment
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Jan 11, 2025
1 parent 43a9b5c commit b840ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drivers/Imagick/Modifiers/FillModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private function fillAllWithColor(Imagick $frame, ImagickPixel $pixel): void
$draw->rectangle(0, 0, $frame->getImageWidth(), $frame->getImageHeight());
$frame->drawImage($draw);

// deactive alpha channel because image is covered in opaque color
// deactive alpha channel when image was filled with opaque color
if ($pixel->getColorValue(Imagick::COLOR_ALPHA) == 1) {
$frame->setImageAlphaChannel(Imagick::ALPHACHANNEL_DEACTIVATE);
}
Expand Down

0 comments on commit b840ef2

Please sign in to comment.