Spaces:
Running
Running
Update js_free-online-image-upscaler.js
Browse files
js_free-online-image-upscaler.js
CHANGED
@@ -2943,7 +2943,7 @@
|
|
2943 |
r.readAsDataURL(e), r.onload = function() {
|
2944 |
var i = this;
|
2945 |
Pu.loadImage(this.result, function(e) {
|
2946 |
-
if (
|
2947 |
var t = document.createElement("canvas"),
|
2948 |
r = t.getContext("2d");
|
2949 |
t.width = e.width, t.height = e.height, r.drawImage(e, 0, 0, e.width, e.height);
|
|
|
2943 |
r.readAsDataURL(e), r.onload = function() {
|
2944 |
var i = this;
|
2945 |
Pu.loadImage(this.result, function(e) {
|
2946 |
+
if (999e3 <= e.width || 999e3 <= e.height) return ju.showMessageBox("error", Nu), !1;
|
2947 |
var t = document.createElement("canvas"),
|
2948 |
r = t.getContext("2d");
|
2949 |
t.width = e.width, t.height = e.height, r.drawImage(e, 0, 0, e.width, e.height);
|