Open SansWord opened 10 years ago
Since canvas on mobile safari has limitation of width and height, FYI: http://stackoverflow.com/questions/6081483/maximum-size-of-a-canvas-element We can not always using canvas to generate dataURL.
So we extends your helpful plugin with one extra api to have string as data to store into Library.
And then we can use XHR to grab a image as blob and then using FileReader#readAsDataURL to read out DataURL. Then save it into Library.
It works for our project, hopefully can make this Plugin more helpful for others.
It would be great if this gets merged soon!
Very useful feature. Hope it can land soon!
Since canvas on mobile safari has limitation of width and height, FYI: http://stackoverflow.com/questions/6081483/maximum-size-of-a-canvas-element We can not always using canvas to generate dataURL.
So we extends your helpful plugin with one extra api to have string as data to store into Library.
And then we can use XHR to grab a image as blob and then using FileReader#readAsDataURL to read out DataURL. Then save it into Library.
It works for our project, hopefully can make this Plugin more helpful for others.