mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-12 01:50:48 +01:00
webp
This commit is contained in:
parent
0e2795d355
commit
77bec421d9
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user