From 12eef9765f09356e8a10a49ae2134724793bb580 Mon Sep 17 00:00:00 2001 From: filesite Date: Wed, 17 Jul 2024 23:19:13 +0800 Subject: [PATCH] improve small image create --- www/js/beauty.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/beauty.js b/www/js/beauty.js index 3979da1..c7b2516 100644 --- a/www/js/beauty.js +++ b/www/js/beauty.js @@ -26,7 +26,7 @@ if ($('#image_site').get(0)) { height = imgEl.height, naturalWidth = imgEl.naturalWidth, naturalHeight = imgEl.naturalHeight; - if (!naturalWidth || naturalWidth < 600 || naturalHeight < 500 || + if (!naturalWidth || naturalWidth <= 600 || naturalHeight <= 500 || (typeof(disableSmallImage) != 'undefined' && disableSmallImage) ) { return false;