mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-01 22:00:31 +02:00
remove debugging
This commit is contained in:
@@ -959,24 +959,15 @@ class CImage
|
|||||||
// To support webp
|
// To support webp
|
||||||
$this->fileType = false;
|
$this->fileType = false;
|
||||||
if (function_exists("exif_imagetype")) {
|
if (function_exists("exif_imagetype")) {
|
||||||
var_dump("has exif");
|
|
||||||
$this->fileType = exif_imagetype($this->pathToImage);
|
$this->fileType = exif_imagetype($this->pathToImage);
|
||||||
var_dump($this->fileType);
|
|
||||||
if ($this->fileType === false) {
|
if ($this->fileType === false) {
|
||||||
if (function_exists("imagecreatefromwebp")) {
|
if (function_exists("imagecreatefromwebp")) {
|
||||||
var_dump("has imagecreatefromwebp");
|
|
||||||
|
|
||||||
//die("before");
|
|
||||||
$webp = imagecreatefromwebp($this->pathToImage);
|
$webp = imagecreatefromwebp($this->pathToImage);
|
||||||
var_dump($webp);
|
|
||||||
die();
|
|
||||||
if ($webp !== false) {
|
if ($webp !== false) {
|
||||||
$this->width = imagesx($webp);
|
$this->width = imagesx($webp);
|
||||||
$this->height = imagesy($webp);
|
$this->height = imagesy($webp);
|
||||||
$this->fileType = IMG_WEBP;
|
$this->fileType = IMG_WEBP;
|
||||||
}
|
}
|
||||||
die();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user