i am trying to save an image from canvas after resizing it or adding some effects on it but i am unable to save the visible area of canvas it save full image all the time is there any way i can save only visible part of canvas whatever is in it with php or javascript or anything else
i am using jquery and php to save image from but same thing
var canvasData = canvas.toDataURL("image/png");
var postData = 'canvasData='+canvasData;
var ajax = new XMLHttpRequest();
ajax.open('POST','http://localhost/canvas/imagesaver.php',true);
ajax.setRequestHeader('Content-Type', 'canvas/upload');
here is what i am trying to do right now