How can I “save” this image?
blob:https%3A//theta360.com/473c6400-b8e7-4c41-8f7a-90f03cbc8787
found at: https://theta360.com/s/lE2in9qQDK6j2CcjPAQcvNhOi
I tried a few script that I found on SO that uses canvas.toDataURL
But I get an error message:
It is not allowed to load the local resource: blob: https% 3A // theta360.com / 473c6400-b8e7-4c41-8f7a-90f03cbc8787
JavaScript:
var url = "blob:https%3A//theta360.com/473c6400-b8e7-4c41-8f7a-90f03cbc8787";
var canvas = document.getElementById("MyCanvas");
var img = new Image();
img.src = url;
img.onload = function () {
var myImage = canvas.toDataURL("image/jpg");
document.getElementById("dataurl").value = myImage;
}
HTML:
<canvas id="MyCanvas">This browser or document mode doesn't support canvas</canvas>
<input id="dataurl" name="dataurl" type="text" size="50" />
Ffish source
share