After drawing an image from a different domain onto a canvas, you can no longer access its ImageData object because of the same-origin-policy. I was having a tough fight with this problem for a few days, to find out that the YQL returns DATA URIs!! So, here's a sample of extracting the edge of an image from a different domain, using YQL. (Playing around with Twitter icons may be interesting...) --