Wordpress LScache Plugin: SVG Images Missing Dimensions
Last Updated on: Wed, 15 Apr 2026 00:00:02 Image dimensions are being added just fine on regular images, but on SVG images they are missing, how can this be fixed? On the referenced URL, you can see all the company logos do not have image widths/heights set, but others on the page do. Report Number: QSPZLGIT The page I need help with: https://zebrabi.com/customers/ I think probably due to this style = max-height: 61px but please try enable debug log , it will provide more detail A primary reason for missing width and height attributes is, that svg is not an image, it is a document, although it is embedded in img tag. An svg image cant be sized with html width and height attributes. If width and height are set this doesnt change the real size of an svg, so it is absolutely correct that there are no width and height attributes. @marleekate -If you create a rule in your theme that all SVG images are shown at width:auto, that should help. img[src$=.svg ] width: auto Then just make sure that the inherent size of the svg (saved from the program) is at the size you want it displayed on the site.
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference