Title: Image elements
Last modified: March 1, 2021

---

# Image elements

 *  Resolved [markk26](https://wordpress.org/support/users/markk26/)
 * (@markk26)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/image-elements/)
 * I’m getting this message from Google Page Speed:
    Image elements have no explicit
   width and height How can I fix this with NitroPack?

Viewing 1 replies (of 1 total)

 *  Plugin Author [NitroPack](https://wordpress.org/support/users/nitropack/)
 * (@nitropack)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/image-elements/#post-14214940)
 * Hi [@markk26](https://wordpress.org/support/users/markk26/),
 * There is currently no way to add these attributes with NitroPack for compatibility/
   stability reasons. Throughout the years we have identified cases where adding
   these attributes can cause stability issues with carousels, gallery plugins and
   sliders. This is why we have developed a more elaborate method to achieve the
   same effect of preemptively sizing images but without using these attributes.
   So even though you might see this recommendation in your Page Speed report the
   underlying issue is actually solved, just in a different way.
 * Regards,

Viewing 1 replies (of 1 total)

The topic ‘Image elements’ is closed to new replies.

 * ![](https://ps.w.org/nitropack/assets/icon-256x256.gif?rev=2936590)
 * [NitroPack – Performance, Page Speed & Cache Plugin for Core Web Vitals, CDN & Image Optimization](https://wordpress.org/plugins/nitropack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nitropack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nitropack/)
 * [Active Topics](https://wordpress.org/support/plugin/nitropack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nitropack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nitropack/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [NitroPack](https://wordpress.org/support/users/nitropack/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/image-elements/#post-14214940)
 * Status: resolved