From 77bec421d9e63b68a32eb204b750a5f0687743b5 Mon Sep 17 00:00:00 2001 From: Lorenzo Yario Date: Wed, 14 Feb 2024 01:18:45 -0800 Subject: [PATCH] webp --- inc/image.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/inc/image.php b/inc/image.php index d7756ffd..5f7fc8a5 100644 --- a/inc/image.php +++ b/inc/image.php @@ -496,3 +496,12 @@ class ImageBMP extends ImageBase { imagebmp($this->image, $src); } } + +class ImageWEBP extends ImageBase { + public function from() { + $this->image = @imagecreatefromwebp($this->src); + } + public function to($src) { + imagewebp($this->image, $src); + } +}