Converting canvas to image url problem in IE9

Skip to first unread message


May 31, 2012, 4:16:22 PM5/31/12

I'm currently working on a software in GWT that loads an image into a Canvas object and performs a number or transformations on it. Finally a image url is extracted from the Canvas object using the Canvas.toDataUrl(String) function. 

Now to the issue: the above described works fine in all browsers except IE (it's IE9 but I have tried setting the browser to different compatibility modes, all with the same result). In all other browsers the toDataUrl() function returns a string that looks like:


but in IE it only returns:

and nothing else. Has anyone experienced this issue before. What is it due to?


Chris Price

Jun 1, 2012, 4:19:12 AM6/1/12
This is wild speculation but, it could be a X-domain security issue
[1]? If it's only happening in IE, I'd check to see that the loading
of the image is using the same technique in IE as it is in Chrome, FF,
etc. e.g. sprite versus data-url.

> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> To post to this group, send email to
> To unsubscribe from this group, send email to
> For more options, visit this group at
Reply all
Reply to author
0 new messages