I'm hoping to make an app that lets the user provide an image URL, and then the app would download the image and then store it locally so it could reuse that image again without the further need to go back on-line. Any chance of making this happen?
Develop games in your browser. Powerful, performant & highly capable.
and load in image via url
Rojo's canvas plug is the most obvious way.
Paste the sprite into the canvas, then save the Canvas.imageUrl into webstorage.
The system has a way to grab the screen, but thats the whole screen uncropped.
newt, I need to keep the alpha (transparency) of the image, so saving the canvas won't work for me, right?
It should work fine, as long as the canvas is blank beforehand, and its bounding box is bigger than the object you are pasting into it.
Cool, I'll give that a shot. thanks.
...wait, you save the imageurl to webstorage... then how do you get it back? Does that save the whole image or just a url pointer to it?