1
0
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:
Mikael Roos 2016-08-08 16:49:29 +02:00
parent b5de49d601
commit bbfd895c4c

View File

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