SVG Image Widht and Height Values
-
After uploading and installing Safe SVG I tried experimenting with it. I was succesfully able to upload a couple of svg’s and add them to a page.
The problem however is that both SVG’s have a width and height attribute value set of 2000px. This regardless of the actual SVG file having a viewbox width and height of 280px x 280px.
After looking in the plugin code I see that save-svg.php has a function fix_admin_preview() (line 175) that has a foreach loop that defines the height and width values to 2000. Changing these to 280 results in a SVG displaying as 280px on the front-end. Could this be a theme or a plugin issue?
If you need any other info, let me know.
Thanks in advance for your time and effort in helping me out.
- The topic ‘SVG Image Widht and Height Values’ is closed to new replies.