Skip to content

Commit

Permalink
handle opacity 0
Browse files Browse the repository at this point in the history
  • Loading branch information
lohanidamodar committed Apr 12, 2021
1 parent 9274a77 commit ae2e55e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Image/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function setBorderRadius(int $cornerRadius): self
*/
public function setOpacity(float $opacity): self
{
if(empty($opacity) || $opacity == 1) {
if((empty($opacity) && $opacity !== 0) || $opacity == 1) {
return $this;
}
$this->image->setImageAlpha($opacity);
Expand Down

0 comments on commit ae2e55e

Please sign in to comment.