diff --git a/src/Drivers/Gd/GdDriver.php b/src/Drivers/Gd/GdDriver.php index bb687b75..ea77f31d 100644 --- a/src/Drivers/Gd/GdDriver.php +++ b/src/Drivers/Gd/GdDriver.php @@ -159,7 +159,8 @@ public function save(?string $path = null): static imagegif($this->image, $path); break; case 'webp': - imagewebp($this->image, $path, $this->quality); + $quality = $this->quality === 100 ? IMG_WEBP_LOSSLESS : $this->quality; + imagewebp($this->image, $path, $quality); break; case 'avif': imageavif($this->image, $path, $this->quality);