I have an tag on my website that is generated from a canvas like from camanjs
Caman('#my-image', function () {
this.brightness(10);
this.contrast(30);
this.sepia(60);
this.saturation(-30);
this.render();
});
The canvas can be converted to a base64 like this:
var strDataURI = oCanvas.toDataURL();
// returns "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACt..."
How can I send this image (2MB - 10MB) to my server?
I know I can use this:
$.ajax({
type: 'POST', //or get
url : 'urlToMyServer.php',
data: { img : $('img').attr('src') }
});
Is this a good way for images <10MB?