hongkhanh / cropbox

A lightweight and simple JavaScript, Jquery, YUI plugin to crop your avatar
http://hongkhanh.github.io/cropbox/
MIT License
266 stars 99 forks source link

Need clear old canvas before return in the getDataURL() function #16

Open PhanHoangAnh opened 9 years ago

PhanHoangAnh commented 9 years ago

To keep a browser thin and clear, especially in mobile devices, you should destroy/remove old canvas before return in getDataURL() function. Some think like that:

var imageData = canvas.toDataURL('image/png'); context.clearRect(0, 0, canvas.width, canvas.height); return imageData;

sidaurukfreddy commented 8 years ago

Did you solved this issue ? me too here face the problem like that

saikiranmarripati commented 8 years ago

i too need this one, anybody got solution