Title: Explicit image height and width missing
Last modified: December 19, 2023

---

# Explicit image height and width missing

 *  Resolved [ldeschenes](https://wordpress.org/support/users/ldeschenes/)
 * (@ldeschenes)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/explicit-image-height-and-width-missing/)
 * Hi,
 * I have been using Optimole for several months now and I am very happy of the 
   performance improvement.
 * But when I run Gtmetrix-Lighthouse it is complaining about not using “explicit
   height and width”. See picture here : [https://mljdtq5dsmwz.i.optimole.com/co-ZpyQ-er8dwcfy/cb:msId3Jvf.lhSCuTv2/w:auto/id:a82d69d6515fa31b1e070cff95d20d70/directUpload/gtmetrix.jpg](https://mljdtq5dsmwz.i.optimole.com/co-ZpyQ-er8dwcfy/cb:msId3Jvf.lhSCuTv2/w:auto/id:a82d69d6515fa31b1e070cff95d20d70/directUpload/gtmetrix.jpg)
 * They say that to fix it I should specified width and height for images. See picture
   here : [https://mljdtq5dsmwz.i.optimole.com/co-ZpyQ-Au3xwxN0/cb:mlKwZfWz.lBiqtzQV/w:auto/id:4fbb8500b8156d844f2f7c077588a67f/directUpload/How-to-fix-this-audit.jpg](https://mljdtq5dsmwz.i.optimole.com/co-ZpyQ-Au3xwxN0/cb:mlKwZfWz.lBiqtzQV/w:auto/id:4fbb8500b8156d844f2f7c077588a67f/directUpload/How-to-fix-this-audit.jpg)
 * Optimole does specifies width and height as ” w:300/h:200 ” but not as ” width
   =”300″ height=200 “.
 * Anything I am missing in setting ? Anything else I should do ?
 * Thanks in advanced!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexplicit-image-height-and-width-missing%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Support [Kush](https://wordpress.org/support/users/kushnamdev/)
 * (@kushnamdev)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/explicit-image-height-and-width-missing/#post-17289600)
 * Hi [@ldeschenes](https://wordpress.org/support/users/ldeschenes/),
 * Thank you for using Optimole and reaching out.
 * The issue of Image elements not having explicit width and height, this seems 
   to be unrelated to Optimole but rather a theme-related matter.
 * Optimole does not add width and height attributes to images if they are missing,
   which is expected behavior. To address this, you can manually add width and height
   attributes to the images, and that should resolve the problem.
 * Let me know if you have any other questions, thank you!

Viewing 1 replies (of 1 total)

The topic ‘Explicit image height and width missing’ is closed to new replies.

 * ![](https://ps.w.org/optimole-wp/assets/icon-256x256.gif?rev=3013666)
 * [Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization](https://wordpress.org/plugins/optimole-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/optimole-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/optimole-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/optimole-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/optimole-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/optimole-wp/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kush](https://wordpress.org/support/users/kushnamdev/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/explicit-image-height-and-width-missing/#post-17289600)
 * Status: resolved