There appears to be a lot of effort gone in to enable loading images into sprites from urls, base64, binary object, local storage etc.
But why is there no easy way to simply save the loaded image as a base64, or save it into binary etc?
Do we really have to do the whole complex "snapshot" the canvas (LayerToCanvas, DevicePixelRatio ETC) then request that using ajax, into binary and convert to base64...
I have loaded an image from a URL (API), all i want to do is simply save that loaded image "somewhere" either into local storage or post it somewhere as base64.
EDIT / UPDATE
The way I am having to dnow do this is:
- Ajax request the image straight into binary.
- Then load the image from baniary into the sprite.
- Can now send / save the binary/base64 as i wanted.
I still wish there was a way to simply, "Get image from sprite".
Andy