1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-23 23:20:57 +01:00
This commit is contained in:
Lorenzo Yario 2024-02-14 01:18:45 -08:00 committed by GitHub
parent 0e2795d355
commit 77bec421d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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