I have a form with an image inside as such:
<body>
<form action="" method="POST" id="canvas">
<img src="/foo/bar.jpg" width="350" height="350" id="imageId"/>
<input type="submit" name="submit" value="Label" id='input'>
</form>
</body>
Using JavaScript, I'd like to be able to save a portion of the image using coordinates, I'm looking for something like this:
Save_Image(x, y, x2, y2, name_of_new_cropped_image_to_be_saved);
Does something like this exist?