thumb webp
This commit is contained in:
parent
49512b153c
commit
8d3b92ba21
@ -1023,6 +1023,9 @@ class common
|
|||||||
case 'gif':
|
case 'gif':
|
||||||
$source_image = imagecreatefromgif($src);
|
$source_image = imagecreatefromgif($src);
|
||||||
break;
|
break;
|
||||||
|
case 'webp' :
|
||||||
|
$source_image = imagecreatefromwebp($src);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
// Image valide
|
// Image valide
|
||||||
if ($source_image) {
|
if ($source_image) {
|
||||||
@ -1045,6 +1048,9 @@ class common
|
|||||||
case 'image/gif':
|
case 'image/gif':
|
||||||
return (imagegif($virtual_image, $dest));
|
return (imagegif($virtual_image, $dest));
|
||||||
break;
|
break;
|
||||||
|
case 'webp' :
|
||||||
|
$source_image = imagecreatefromwebp($src);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return (false);
|
return (false);
|
||||||
|
Loading…
Reference in New Issue
Block a user