mirror of
https://github.com/mosbth/cimage.git
synced 2025-04-21 01:11:54 +02:00
webp implemented but fail to verify
This commit is contained in:
parent
b5de49d601
commit
bbfd895c4c
@ -949,9 +949,7 @@ class CImage
|
||||
$this->fileType = exif_imagetype($file);
|
||||
if ($this->fileType === false) {
|
||||
if (function_exists("imagecreatefromwebp")) {
|
||||
die("before create webp " . $file);
|
||||
$webp = imagecreatefromwebp($file);
|
||||
die("after create webp " . $file);
|
||||
if ($webp !== false) {
|
||||
$this->width = imagesx($webp);
|
||||
$this->height = imagesy($webp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user