Skip to content
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

About the IE support. #6

Open
luckerxia opened this issue Jul 9, 2015 · 2 comments
Open

About the IE support. #6

luckerxia opened this issue Jul 9, 2015 · 2 comments

Comments

@luckerxia
Copy link

I use IE 10, the image cann't show, base64 code isn't generation.

--NEXT.ITEM-BOUNDARY
Content-Location: http://****/images/ECharts.png
Content-Type: data:
Content-Transfer-Encoding: data:

--NEXT.ITEM-BOUNDARY--

@breezing
Copy link

Hi

That's probably because following codes, as width and height return 0 under IE. I have added width and height attribute to img element, but it doesn't work...
// Calculate dimensions of output image
var w = Math.min(img[i].width, options.maxWidth);
var h = img[i].height * (w / img[i].width);

@Divyeshkotadia
Copy link

@breezing you are correct.
Just by adding width and height attributes in image tag and it created canvas object with data. Hope this helps!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants