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

SVG Files don't render in browser #5

Closed
jakehilton opened this issue Mar 21, 2014 · 5 comments
Closed

SVG Files don't render in browser #5

jakehilton opened this issue Mar 21, 2014 · 5 comments

Comments

@jakehilton
Copy link

Testing the svg files results in a browser not rendering the image but only the xml data. Tested this in chrome and in firefox. It seems the svg format the files are written in is incomplete. Any help on getting this resolved would be much appreciated.

Here is an svg file that is working correctly:
http://upload.wikimedia.org/wikipedia/commons/3/35/Tux.svg

Thank you.
Jake

@Rush
Copy link
Owner

Rush commented Mar 21, 2014

It might have to do with your http server's mimetype. Mimetype has to be image/svg+xml. I think it does not have anything to do with file's content.

@jakehilton
Copy link
Author

This is a local load.. no server involved. It works with the Tux.svg but not any of the font awesome svg files.

I did notice svg files grabbed from here work: http://commons.wikimedia.org/wiki/Category:Font-Awesome_icons

Not sure where the breakdown is but there seems to be something not quite right with the way svg files are generated in this project.

@Rush
Copy link
Owner

Rush commented Mar 21, 2014

I found the issue, will make an update in a few minutes.

@jakehilton
Copy link
Author

Great to hear. I was going to say that adding the following to the svg tag got it to display.

xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"

Not sure if that's the same conclusion you came to but thought I'd mention it.

Thanks!

@Rush Rush closed this as completed in 70d329f Mar 21, 2014
@jakehilton
Copy link
Author

Working well now. Thank you for the quick fix.

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

2 participants