-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Inconsistent rendering of SVGs in fabric.Image objects #4393
Comments
It would be helpful, if the documentation listed compatible image formats for |
You should load your svg with the correct method: |
I don't want to embed an SVG, I want to reference it. In SVG it looks like this: |
The issue has been described somewhere else here the svg is lacking any kind of width and height. I refreshed a bug in firefox asking for behave like the other browsers but they said is against the specs. https://bugzilla.mozilla.org/show_bug.cgi?id=700533#c28 #4324 this recent PR could work as a solution for you. |
let me know if #4324 solved for you |
Version
2.0.0-beta7
Test Case
https://jsfiddle.net/nwkacqdb/
Steps to reproduce
Try to load an SVG file using
fabric.Image.fromURL
.Expected Behavior
fabric.Image
should render SVGs properly, and identically across all browsers.Actual Behavior
The SVG is rendered in Safari 11. It does also render in Chrome 61, albeit at a different size. And it does not render in Firefox 56, lacking any error message in the JS console.
The text was updated successfully, but these errors were encountered: