From 7c6d16c890b2f9a290696d9cb1a22e880a59bb8c Mon Sep 17 00:00:00 2001 From: Josh Date: Thu, 25 Jun 2026 12:05:08 -0400 Subject: [PATCH] fix(image): honor file path when saving WebP images Signed-off-by: Josh --- lib/private/Image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Image.php b/lib/private/Image.php index d1a2f164ed52e..c812490032d87 100644 --- a/lib/private/Image.php +++ b/lib/private/Image.php @@ -279,7 +279,7 @@ private function _output(?string $filePath = null, ?string $mimeType = null): bo $retVal = imagebmp($this->resource, $filePath); break; case IMAGETYPE_WEBP: - $retVal = imagewebp($this->resource, null, $this->getWebpQuality()); + $retVal = imagewebp($this->resource, $filePath, $this->getWebpQuality()); break; default: $retVal = imagepng($this->resource, $filePath);