KingPsychopath / explorercanvas

Automatically exported from code.google.com/p/explorercanvas
Apache License 2.0
0 stars 0 forks source link

drawImage can't handle data uri images #60

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, 

I would like to show data uri images like this in canvas object. 

<img src="data:image/png;base64,
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh
0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAIp
SURBVDjLddM9aFRBFIbh98zM3WyybnYVf4KSQjBJJVZBixhRixSaShtBMKUoWomgnaCxsJdgIQS
stE4nEhNREgyoZYhpkogkuMa4/3fuHIu7gpLd00wz52PO
MzMydu/Dy958dMwYioomIIgqDa+VnWrzebNUejY/NV6nQ8nlR4ufXt0fzm2WgxUgqBInAWdhemG
bpcWNN9/XN27PPb1QbRdgjEhPqap2ZUv5+iOwvJnweT1m
T5djZKjI6Ej/udz+wt1OJzAKYgWyDjJWyFghmzFsbtcY2gsTJwv09/Vc7RTgAEQgsqAKaoWsM8w
u/z7a8B7vA8cHD3Fr+ktFgspO3a+vrdVfNEulJ/NT4zWn
gCBYY1oqSghKI465fvYwW+VAatPX07IZmF7YfrC0uDE8emPmilOFkHYiBKxAxhmSRPlZVVa2FGO
U2Ad2ap4zg92MDBXJZczFmdflx05VEcAZMGIIClZASdes
S2cU/dcm4sTBArNzXTcNakiCb3/HLRsn4Fo2qyXh3WqDXzUlcgYnam3Dl4Hif82dbOiyiBGstSj
g4majEpl8rpCNUQUjgkia0M5GVAlBEBFUwflEv12b/Hig
6SmA1iDtzhcsE6eP7LIxAchAtwNVxc1MnhprN/+lh0txErxrPZVdFdRDEEzHT6LWpTbtq+HLSDD
iOm2o1uqlyOT37bIhHdKaXoL6pqhq24Dzd96/tUYGwPSB
Vv7atFglaFIu5KLuPxeX/xsp7aR6AAAAAElFTkSuQmCC" />

IE8 can display it as a regular image but I cannot use this as an argument 
of function drawImage. I see only the default 'missing image' sign. 

Is it possible to display it on explorercanvas? 

What version of the product are you using? On what operating system?
- explorer canvas R3 

Thank you 

Zoran Vukoszavlyev

Original issue reported on code.google.com by vzora...@gmail.com on 7 Dec 2009 at 3:02

GoogleCodeExporter commented 9 years ago
IE doesn't support data URIs in the VML image elements, so I guess this will 
never work 
before someone finds another way. Someone proposed a patch to use divs instead 
of a VML 
image, you maybe should try this one.

Original comment by fabien.menager on 21 Dec 2009 at 3:04

GoogleCodeExporter commented 9 years ago
I'm facing the same issue. Did anybody found a solution for this problem? 
Thank, Daniel

Original comment by mol...@gmail.com on 8 Apr 2010 at 3:41

GoogleCodeExporter commented 9 years ago
IE8 only support Dataurl up to 32kb

Original comment by naren...@narendrasisodiya.com on 8 Dec 2011 at 8:11