diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index a5f5b8028..2e0c371ea 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -6005,7 +6005,7 @@ return QR.error("" + file.name + ": Image too large (image: " + img.height + "x" + img.width + "px, max: " + QR.max_heigth + "x" + QR.max_width + "px)"); } if (height < QR.min_heigth || width < QR.min_heigth) { - return QR.error("" + file.name + ": Image too small (image: " + img.height + "x" + img.width + "px, max: " + QR.min_heigth + "x" + QR.min_width + "px)"); + return QR.error("" + file.name + ": Image too small (image: " + img.height + "x" + img.width + "px, min: " + QR.min_heigth + "x" + QR.min_width + "px)"); } return QR.handleFile(file, isSingle, max); }; diff --git a/builds/crx/script.js b/builds/crx/script.js index 84923d7d0..c75707508 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -6041,7 +6041,7 @@ return QR.error("" + file.name + ": Image too large (image: " + img.height + "x" + img.width + "px, max: " + QR.max_heigth + "x" + QR.max_width + "px)"); } if (height < QR.min_heigth || width < QR.min_heigth) { - return QR.error("" + file.name + ": Image too small (image: " + img.height + "x" + img.width + "px, max: " + QR.min_heigth + "x" + QR.min_width + "px)"); + return QR.error("" + file.name + ": Image too small (image: " + img.height + "x" + img.width + "px, min: " + QR.min_heigth + "x" + QR.min_width + "px)"); } return QR.handleFile(file, isSingle, max); }; diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 2750446fa..9c64d5716 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -363,7 +363,7 @@ QR = img.onload = => {height, width} = img return QR.error "#{file.name}: Image too large (image: #{img.height}x#{img.width}px, max: #{QR.max_heigth}x#{QR.max_width}px)" if height > QR.max_heigth or width > QR.max_heigth - return QR.error "#{file.name}: Image too small (image: #{img.height}x#{img.width}px, max: #{QR.min_heigth}x#{QR.min_width}px)" if height < QR.min_heigth or width < QR.min_heigth + return QR.error "#{file.name}: Image too small (image: #{img.height}x#{img.width}px, min: #{QR.min_heigth}x#{QR.min_width}px)" if height < QR.min_heigth or width < QR.min_heigth QR.handleFile file, isSingle, max img.src = URL.createObjectURL file