1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-01-29 09:47:37 +01:00

remove debugging

This commit is contained in:
Mikael Roos 2016-08-08 16:21:36 +02:00
parent 3d0b25abe0
commit 7677fc772f

View File

@ -959,24 +959,15 @@ class CImage
// To support webp
$this->fileType = false;
if (function_exists("exif_imagetype")) {
var_dump("has exif");
$this->fileType = exif_imagetype($this->pathToImage);
var_dump($this->fileType);
if ($this->fileType === false) {
if (function_exists("imagecreatefromwebp")) {
var_dump("has imagecreatefromwebp");
//die("before");
$webp = imagecreatefromwebp($this->pathToImage);
var_dump($webp);
die();
if ($webp !== false) {
$this->width = imagesx($webp);
$this->height = imagesy($webp);
$this->fileType = IMG_WEBP;
}
die();
}
}
}