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); + } +}