Insert a picture from a site

Couldn't find that in the tutorials.

How do I load an image from a different site inside a variable for later use. There is ample explanation on how to do this from a folder, but that's only if I have access to the server.

Answers

  • edited August 2016

    We can load images from anywhere. \m/
    However if we don't have CORS authorization from the server, the image becomes tainted. :-SS
    We can display and resize tainted images. But we don't have access to its pixel content. :(

  • Ok... "tainted" is the word? Sounds creepy. Does it mean I can't just load a picture from the outside? How does the server even know I load anything? I though the browser played the scipt?

  • Does it mean I can't just load a picture from the outside?

    I said: "We can load images from anywhere."
    Whether the loading gets us a tainted image or not is based on the server's CORS configuration.

Sign In or Register to comment.