cncf / cncf.io

☁️♮🏛🚧 The CNCF.io WordPress website
https://cncf.io
MIT License
80 stars 37 forks source link

Fix display_responsive_images() method to properly work with SVGs #779

Closed thetwopct closed 8 months ago

thetwopct commented 10 months ago

When an SVG is inserted via the display_responsive_images() method the image dimensions are not properly inserted.

Screenshot-2023-08-24 --22 02 33@2x

Look at how Safe SVG are solving this and even pass SVG display to that plugin or handle it ourselves

cjyabraham commented 10 months ago

This is the reason why load-media-from-production doesn't render svg images properly right?

thetwopct commented 10 months ago

Correct. I haven't confirmed if the dimensions are inserted properly on production sites. Need to check.