devgeeks / Canvas2ImagePlugin

PhoneGap / Cordova plugin for iOS to save the contents of an HTML canvas to the device's Photo Library
211 stars 218 forks source link

Allow a base64 encoded image string to be saved without canvas #26

Closed bentleyo closed 11 years ago

bentleyo commented 11 years ago

Not sure if this pull request will be useful for other users, but I needed the ability to save a base64 encoded image to the device without using a canvas.

This solution may not be the best as the successCallback is called after the base64 encoded string is fetched from the canvas, but I imagine this wouldn't happen in the majority of use cases.

bentleyo commented 11 years ago

I've closed this for now as I realised I haven't actually tested that the original functionality has been left intact, the solution isn't the cleanest and this is probably out of the scope of the project.