I\'m trying to create some thumbnails of dynamically created pages for a website, i have found a solution by adding the html in a svg which I then draw on an image inside a canv
You don't state what you get in console on the Blob nor the URL.
Just a shot but you are revoking the url right after setting it as source on the image. You need to revoke if after the image has been loaded in the onload
event:
img.onload = function() {
DOMURL.revokeObjectURL(url); /// here
context.drawImage(img, 100, 100);
};
img.src = url;
//DOMURL.revokeObjectURL(url); /// not here
See that helps out. If not then you're probably dealing with a Safari specific issue.
(your canvas specific translate etc. should also be inside the onload
event or at least called before you set the src
property).