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)) {
height = imgEl.height, height = imgEl.height,
naturalWidth = imgEl.naturalWidth, naturalWidth = imgEl.naturalWidth,
naturalHeight = imgEl.naturalHeight; naturalHeight = imgEl.naturalHeight;
if (!naturalWidth || naturalWidth < 600 || naturalHeight < 500 || if (!naturalWidth || naturalWidth <= 600 || naturalHeight <= 500 ||
(typeof(disableSmallImage) != 'undefined' && disableSmallImage) (typeof(disableSmallImage) != 'undefined' && disableSmallImage)
) { ) {
return false; return false;

Loading…
Cancel
Save