add large image import warning
This commit is contained in:
parent
6cab389146
commit
dceffdae26
1 changed files with 8 additions and 1 deletions
|
|
@ -1048,7 +1048,14 @@
|
|||
});
|
||||
}
|
||||
|
||||
function loadImageDialog(image, name) {
|
||||
function loadImageDialog(image, name, force) {
|
||||
if (!force && image.byteLength > 2500000) {
|
||||
return UC.confirm("Large images may fail to import<br>Consider resizing under 1000 x 1000<br>Proceed with import?").then(ok => {
|
||||
if (ok) {
|
||||
loadImageDialog(image, name, true);
|
||||
}
|
||||
});
|
||||
}
|
||||
const opt = {pre: [
|
||||
"<div class='f-col a-center'>",
|
||||
" <h3>Image Conversion</h3>",
|
||||
|
|
|
|||
Loading…
Reference in a new issue