Title: Image elements do not have explicit width and height
Last modified: March 2, 2021

---

# Image elements do not have explicit width and height

 *  Resolved [dwxd](https://wordpress.org/support/users/dwxd/)
 * (@dwxd)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/image-elements-do-not-have-explicit-width-and-height/)
 * Hi,
 * We seem to be getting this error of “Image elements do not have explicit width
   and height” on Page Speed Insights and Lighthouse 🙁
 * Have followed all the guidelines on adding Width and Height to the images but
   still am getting the error.
 * It is showing this as the failing element, but seems to be what the plugin produces?
 *     ```
       data:image/svg+xml;base64,PHN2ZyBoZ…
       img
       <img alt="" src="image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzI1Micgd2lkdGg9JzI1MCcgeG1sbnM9…" />
       ```
   
 * Thanks 🙂
    -  This topic was modified 5 years, 3 months ago by [dwxd](https://wordpress.org/support/users/dwxd/).
      Reason: Code not showing

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/image-elements-do-not-have-explicit-width-and-height/#post-14120718)
 * I’ve previously reported this as a bug in Lighthouse. Please see the issue I 
   filed: [https://github.com/GoogleChrome/lighthouse/issues/11571](https://github.com/GoogleChrome/lighthouse/issues/11571)
 * The lack of width/height won’t cause a performance, so you can ignore those errors.
 *  Thread Starter [dwxd](https://wordpress.org/support/users/dwxd/)
 * (@dwxd)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/image-elements-do-not-have-explicit-width-and-height/#post-14121899)
 * Hi,
 * Thanks for the quick reply and the link 🙂
 * I think the only flags on my Lighthouse are known bugs now, so i don’t think 
   i can do anymore.
 * I’m getting a really impressive score of 96-98 by doing so much AMP optimising!!
 * This plugin is amazing, thanks to all the work you’re putting into it and making
   AMP easy to integrate!
 * Thanks!
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/image-elements-do-not-have-explicit-width-and-height/#post-14130055)
 * Thanks a lot for the feedback! We’d appreciate a [review](https://wordpress.org/support/plugin/amp/reviews/#new-post)!
 * By the way, what is the URL for your site? I’d like to see the speeds you speak
   of.
 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/image-elements-do-not-have-explicit-width-and-height/#post-14253327)
 * Hello [@dwxd](https://wordpress.org/support/users/dwxd/)
 * JFI: This audit is fixed in Lighthouse 7.2.0 per
    [https://github.com/GoogleChrome/lighthouse/issues/11571#issuecomment-809641216](https://github.com/GoogleChrome/lighthouse/issues/11571#issuecomment-809641216)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Image elements do not have explicit width and height’ is closed to new
replies.

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

 * 4 replies
 * 3 participants
 * Last reply from: [Milind More](https://wordpress.org/support/users/milindmore22/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/image-elements-do-not-have-explicit-width-and-height/#post-14253327)
 * Status: resolved