You can set up a page proxy on your own server.
A page proxy is simply a page which fetches the image on the url you want to retrieve to server, then forwards it to you from that page instead. This way the image becomes part of the same origin as the script is running on.
This will work for PHP, .Net, cgi etc. but you would to make the page and its code. You will most likely find plenty of examples for this out there (google it for your specific platform).
If you don't have access to do this then there are only these options left:
- Move/copy the image manually to your page's origin
- Request CORS usage (which require server to have this enabled)
- If server doesn't, ask the owner kindly to enable this for your domain and then do CORS request
A CORS request is done by specifying either the attribute in an image's tag:
<img src="..." crossOrigin="anonymous">
or property in JavaScript:
var img = new Image;
img.onload = ...
img.crossOrigin = '';
img.src = '...';