So I'm using Cropper to let a user resize and do some stuff to an image. The edited image is in a canvas element which I run .toDataURL()
on. This creates a base64 string of the 'finished product'.
I need to programmatically save the edited image to a folder on the server.
I can't do this with an $.ajax
request because I can't pass such a long query via a $_POST/$_GET
command.
Some other details/information:
- this is a WordPress website (not that this makes a difference, I dont think)
- the edited image is about 300x300
- i need to support IE9 so client-side file-saving isn't an option