Catch files with 'jpeg' extension when parsing comics for thumbnails

This commit is contained in:
Junior 2025-03-13 12:49:22 -04:00
parent 8b5949d1d0
commit 0abfc1624f

View File

@ -59,6 +59,7 @@ function makeThumb($item = "") {
$imgext = strtolower($parts['extension']);
if ( (strcmp($lowest, $imgname) > 0)
&& ((strcasecmp($imgext, "jpg") == 0)
|| (strcasecmp($imgext, "jpeg") == 0)
|| (strcasecmp($imgext, "png") == 0)
|| (strcasecmp($imgext, "webp") == 0)) ) {
$lowest = $imgname;
@ -82,6 +83,7 @@ function makeThumb($item = "") {
$imgext = strtolower($parts['extension']);
if ( (strcmp($lowest, $imgname) > 0)
&& ((strcasecmp($imgext, "jpg") == 0)
|| (strcasecmp($imgext, "jpeg") == 0)
|| (strcasecmp($imgext, "png") == 0)
|| (strcasecmp($imgext, "webp") == 0)) ) {
$lowest = $imgname;