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