New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IE 11 Problem with data URI images. #614
Comments
I got this working consistently:
It appears that SOMETIMES when an image is assigned a data URI, the image is not loaded instantly, and needs to be rebuilt. I see you have an onload handler in PIXI.BaseTexture, and I'm not sure why that's not working in this case. |
I'm not even sure if IE is even supported by pixi.js, it's pretty incredible you even managed to get it running. |
I wonder if IE11 is sometimes reporting the wrong value for the img.complete property, a reduced test case would make that more clear. |
In a previous project, we noticed some strange issues with var image = new Image();
//attach listener before setting src
image.onload = ...func...
//setup the source
image.src = '...'; |
I just tested Pixi on Windows 8.1 tablet, they use IE11. It seems that sometimes even if Adding
Now all sprites are showing every time! Would you accept PR? |
hells yeah! :) On Tue, Apr 1, 2014 at 1:31 PM, Eemeli Kelokorpi
|
Clsoing as this should be all good now in 1.5.3 👍 Thanks all! |
I still get this in IE9 and IE10 with Pixi 2.2.0. It happens in
While in the codepen the tooltip text is initially set to an empty string, the error still happens when I set it to something non-empty. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am loading some Sprites using PIXI.Sprite.fromImage and instead of using a URL, I'm using a data URI ("data:image/png;base64, ... ")
This works fine in all other browsers, but in IE it will sometimes not load the image. It's completely inconsistent. Sometimes all images load, but usually either none or some of them load. I imagine this is probably an event not being fired or a race condition.
Also, I've found that when doing this in IE, I need to use Texture.fromImage and assign it to a new Sprite. Weird.
It works normally about half the time in Canvas, and almost never in WebGL.
And one other thing to note - if I use a data URI I need to specify crossorigin as true or it throws an error. No biggie but a usability issue.
The text was updated successfully, but these errors were encountered: