Title: Incorrect width/height when processing &#8220;responsive&#8221; SVGs
Last modified: February 9, 2026

---

# Incorrect width/height when processing “responsive” SVGs

 *  [Doug Wollison](https://wordpress.org/support/users/dougwollison/)
 * (@dougwollison)
 * [4 months ago](https://wordpress.org/support/topic/incorrect-width-height-when-processing-responsive-svgs/)
 * Sometimes the SVGs we get will be exported as “responsive”, with the width/height
   attributes set to either 100% or not set at all. In both cases, the viewBox attribute
   is set, and should be used instead.
 * I would suggest that the bodhi_svgs_get_dimensions function be modified to parse
   the viewBox for width/height, in the event the width/height attributes themselves
   are empty or specified in percentage units.

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fincorrect-width-height-when-processing-responsive-svgs%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/svg-support/assets/icon.svg?rev=3554681)
 * [SVG Support](https://wordpress.org/plugins/svg-support/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/svg-support/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/svg-support/)
 * [Active Topics](https://wordpress.org/support/plugin/svg-support/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/svg-support/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/svg-support/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Doug Wollison](https://wordpress.org/support/users/dougwollison/)
 * Last activity: [4 months ago](https://wordpress.org/support/topic/incorrect-width-height-when-processing-responsive-svgs/)
 * Status: not resolved