Canvas2ImagePlugin icon indicating copy to clipboard operation
Canvas2ImagePlugin copied to clipboard

Add saveDataStringAsImageDataToLibrary api, input datastring as parameter.

Open SansWord opened this issue 11 years ago • 2 comments

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.

SansWord avatar Dec 26 '13 14:12 SansWord

It would be great if this gets merged soon!

confile avatar Apr 07 '14 17:04 confile

Very useful feature. Hope it can land soon!

Hybrid-Force avatar Aug 18 '15 13:08 Hybrid-Force