stomita/ios-imagefile-megapixel

I explode by this plugin :((((

superchangme opened this issue · 0 comments

it can work correctyly on chrome emulator,but can't load img on mobile device.
my code like this:

var myPreview=document.getElementById("previewImg");
  var img = new Image();
                        img.tagName="img";
                        mega=new MegaPixImage(this.files[0]);
                        mega.render(img,{ maxWidth: 1024, maxHeight: 1024,quality:1 },function(){
                          myPreview.src=img.src
                        })