mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-01 05:50:12 +02:00
webp implemented but fail to verify
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user