You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please can someone advise what SVG vesions are support and if there are other limitations. I'v been creating SVG's via Illustrator and not all appear to load. Saving to SVG 1.0 seems the most reliable but they don't seem to contain some basic data in the SVG, such as a size that the class can obtain using ->getWidth() etc.
Thanks.
The text was updated successfully, but these errors were encountered:
PHP-SVG should be able to load most element types, even ones that do not have their own classes. It also does not care about attribute names and values and will load them all. Text elements, certain style sheets and scripts might cause problems though.
Methods like getWidth(), getCenterX() and so on are simply shortcuts for getAttribute('width'), getAttribute('cx'), respectively.
Granted, rendering/rasterizing SVGs is a completely different topic. There are a number of issues with that still.
So depending on what you're doing with the loaded files, support can be better or worse. If you want to submit a sample image + code that does not work with PHP-SVG, I can give further guidance.
Please can someone advise what SVG vesions are support and if there are other limitations. I'v been creating SVG's via Illustrator and not all appear to load. Saving to SVG 1.0 seems the most reliable but they don't seem to contain some basic data in the SVG, such as a size that the class can obtain using ->getWidth() etc.
Thanks.
The text was updated successfully, but these errors were encountered: