I want to save my rotated image to a file, but I don't know how...
I'm using jquery-rotate plugin to rotate my image, here's my javascript:
<script>
$(function() {
var rotation = 0;
$("#left").click(function() {
rotation = (rotation -90) % 360;
$("#spin-pic").rotate(rotation);
});
$("#right").click(function() {
rotation = (rotation + 90) % 360;
$("#spin-pic").rotate(rotation);
});
});
</script>
Html:
<input type="submit" id="left">
<input type="submit" id="right">
<img src="something.jpg" id="spin-pic">
Please help, thank you:)