I want users to upload an image or specify a URL of an image and then be able to look like they're drawing on top of the image. So I can make a <canvas>
element with a background image. But I don't know beforehand how big that image is (well I can figure it out if they uploaded an image). How can I deal with this using jQuery?
I know I can call $('img#id_name').width
and create a canvas based on that width (and get the height the same way). But I want that to be the background image.