Get Cross Domain Images with HTML5 Canvas: getImageData
getImageData is a jQuery plugin to create a proxy script on their server to get images from different domains or origins. It enables pixel level access to images from different origins.
It works by sending a JSONP request with the URL of the image to Google’s servers via the Google App Engine. The server then converts the image into base64 encoded data URL and sends the image back as a JSON object. This means that the image can be locally included on the website and therefore it can be edited by the canvas tag.
2 Responses
[...] This post was mentioned on Twitter by dhoko, Frontend.Pro. Frontend.Pro said: Get Cross Domain Images with HTML5 Canvas: getImageData – http://bit.ly/fTj55S [...]
[...] this article: Get Cross Domain Images with HTML5 Canvas: getImageData | Greepit Medien zum Thema Medien by [...]