Browse Source

improve small image create

master
filesite 4 months ago
parent
commit
12eef9765f
  1. 2
      www/js/beauty.js

2
www/js/beauty.js

@ -26,7 +26,7 @@ if ($('#image_site').get(0)) { @@ -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;

Loading…
Cancel
Save