Add jpeg support
Hi, I needed jpeg support so I changed this line, maybe make this available as a setting?
//var imageData = canvas.toDataURL().replace(/data:image/png;base64,/,''); var imageData = canvas.toDataURL("image/jpeg", 1.0).replace(/data:image/jpeg;base64,/,'');
That's a great idea... I might try and get on that this weekend.
Update: still haven't gotten around to this... still want to though. Trying to find time to work on this plugin.
I've open a pull request to extends a api to save data string as image into library. It can also save dataURL of jpg, too.
var imageData = canvas.toDataURL("image/jpeg", 1.0).replace(/data:image/jpeg;base64,/,'');
is this working ?