Load an html5 canvas into a PIL Image with Django
问题 I'm trying to get the contents of an html5 canvas and pass it to my django server, where it will then be manipulated with PIL and saved as a PNG. Here's what I have so far: From the HTML form, the user clicks the "update" button, the canvas's contents - with canvas.toDataURL() - gets dumped into a text box that is submitted via a POST form. Eventually this will be automatic, but not for now. <input type="text" id="canvasData" name="canvasData"/> <input type='button' value="update" onclick=