How can I "save" this image?
blob:https%3A//theta360.com/473c6400-b8e7-4c41-8f7a-90f03cbc8787
found on: https://theta360.com/s/lE2in9qQDK6j2CcjPAQcvNhOi
I tried some script I found on SO which uses canvas.toDataURL
But I get an error:
Not allowed to load 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"; // document.getElementById("img1").src; // 'img1' is the thumbnail - I had to put an id on it
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" />
%3A
by:
. – Griga
element, set itsdownload
attribute toimage.jpg
, itshref
attribute to that URL and then click on it (with.click()
). – Grig<a href="blob:https://theta360.com/473c6400-b8e7-4c41-8f7a-90f03cbc8787" download="image.jpg">download blob image</a>
**Failed. No File – Injustice<img>
elements at linked page havingsrc
"blob:https%3A//theta360.com/473c6400-b8e7-4c41-8f7a-90f03cbc8787"? It is not possible to request anobjectURL
from another origin; see "Security and other considerations" at Working with files in JavaScript, Part 4: Object URLs – GiarlaobjectURL
created byURL.createObjectURL()
at a different origin than the origin the script is called from? – GiarlaobjectURL
, try to download the url from a different origin. – Giarla