From 0abfc1624fe9eba312523057fe77e30bf286d3c2 Mon Sep 17 00:00:00 2001 From: Junior Date: Thu, 13 Mar 2025 12:49:22 -0400 Subject: [PATCH] Catch files with 'jpeg' extension when parsing comics for thumbnails --- functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions.php b/functions.php index a3112f1..2ed06da 100644 --- a/functions.php +++ b/functions.php @@ -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;