Reputation: 164
I trying to resize an image and I am getting the uncaught TypeError message.
My code is:
var file = canvas.toDataUrl("image/jpeg", 0.5);
Upvotes: 0
Views: 1131
Reputation: 164
I was being lame and missed that the function name was not toDataUrl but toDataURL.
So it should be written like:
var file = canvas.toDataURL("image/jpeg", 0.5);
Upvotes: 3