moxie icon indicating copy to clipboard operation
moxie copied to clipboard

Image preview error

Open XPLing opened this issue 7 years ago • 2 comments

When I used the new mOxie.image.Image () method, the picture went wrong all the time, and the error was not clear. The code is as follows ` var preloader = new mOxie.image.Image();

            preloader.onload = function () {             
                var imgsrc = preloader.type == 'image/jpeg' ? preloader.getAsDataURL('image/jpeg', 80) : preloader.getAsDataURL();
                preloader.destroy();
                preloader = null;
            };
            preloader.onerror = function (e) {
                console.log(e);
            };
            preloader.load(file.getSource());`

file is a object: image After running, the program has been going into the onerror,and error is as follows image Please help you, thank you.

XPLing avatar Jun 11 '18 10:06 XPLing

same with you. plupload + moxie

Lunziyuan avatar Nov 25 '19 09:11 Lunziyuan

fixd by this. https://github.com/moxiecode/plupload/issues/1469#issuecomment-320438490

Lunziyuan avatar Nov 25 '19 09:11 Lunziyuan