allow file extensions uppercase
This commit is contained in:
parent
e7a426994b
commit
06667852d1
|
@ -219,7 +219,7 @@ function sub_ext($src, $ext) {
|
|||
* jpeg, webp, and avif for lossy, and png and lossless webp for lossless
|
||||
*/
|
||||
function gen_images($src, $opts = "", $lossy=0) {
|
||||
$ext = substr($src, strrpos($src, '.')+1);
|
||||
$ext = strtolower(substr($src, strrpos($src, '.')+1));
|
||||
$psrc = ltrim($src, '/');
|
||||
|
||||
if ($lossy || in_array($ext, ["jpg", "jpeg"])) {
|
||||
|
|
Loading…
Reference in a new issue