Skip to content Skip to sidebar Skip to footer

Why ToDataURL Does Not Get Canvas Content On Mobile?

I'm trying to get an image from a canvas, it worked on pc browsers, but not on mobile (I tested on an iPhone in Safari)... Here is the code: $('#draw').click(function() {

Solution 1:

I have the same issue. Tested on HTC Desire with Android 2.3, HTC One with Android 4.0 and iPhone 7s ... I run over the toDataURL() but only get "data:," as output.

According to here it's not supported by Android, dunno about iOS7 but it seems it isn't either.

Btw. is there a reason for calling var drawing = document.getElementById("drawing"); twice?


Post a Comment for "Why ToDataURL Does Not Get Canvas Content On Mobile?"