Title: Missing Width/Height Attributes and Optimizing Images
Last modified: August 22, 2016

---

# Missing Width/Height Attributes and Optimizing Images

 *  [ratracegrad](https://wordpress.org/support/users/ratracegrad/)
 * (@ratracegrad)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/missing-widthheight-attributes-and-optimizing-images/)
 * I am using v2.0.4 free version of this plugin and I really love it. I have worked
   hard on greatly improving my website’s page load speed time. After installing
   this plugin my websites ranking in gtmextrix.com got pinged for the following
   2 reasons:
 * 1) The following image(s) are missing width and/or height attributes.
    2) Optimizing
   the following images could reduce their size by 6.7KiB (27% reduction
 * Examples of 1 are:
    [http://cdn.ratracegrad.com/wp-content/plugins/special-recent-posts/cache/srpthumb-p1476-100×55-no.jpg](http://cdn.ratracegrad.com/wp-content/plugins/special-recent-posts/cache/srpthumb-p1476-100×55-no.jpg)(
   Dimensions: 100 x 55) [http://cdn2.ratracegrad.com/wp-content/plugins/special-recent-posts/cache/srpthumb-p1401-100×55-no.png](http://cdn2.ratracegrad.com/wp-content/plugins/special-recent-posts/cache/srpthumb-p1401-100×55-no.png)(
   Dimensions: 100 x 55)
 * Examples of 2 are:
    Losslessly compressing [http://cdn2.ratracegrad.com/wp-content/plugins/special-recent-posts/cache/srpthumb-p1401-100×55-no.png](http://cdn2.ratracegrad.com/wp-content/plugins/special-recent-posts/cache/srpthumb-p1401-100×55-no.png)
   could save 3.0KiB (49% reduction). See optimized version Losslessly compressing
   [http://cdn3.ratracegrad.com/wp-content/plugins/special-recent-posts/cache/srpthumb-p1415-100×55-no.png](http://cdn3.ratracegrad.com/wp-content/plugins/special-recent-posts/cache/srpthumb-p1415-100×55-no.png)
   could save 1.3KiB (22% reduction). See optimized version
 * My website is [http://www.ratracegrad.com](http://www.ratracegrad.com).
 * Is there anyway to adjust this plugin so that it automatically specifies a height/
   weight value for images instead of using auto in the CSS? I am using height 100
   and width 55 and modified the plugins css to specify these values but it is not
   working. Also is there any way to have the thumbnails created modified so they
   avoid the image size compression message? Final question is will the PRO version
   resolve both of these issues?
 * Thanks.
 * [https://wordpress.org/plugins/special-recent-posts/](https://wordpress.org/plugins/special-recent-posts/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Luca Grandicelli](https://wordpress.org/support/users/lgrandicelli/)
 * (@lgrandicelli)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/missing-widthheight-attributes-and-optimizing-images/#post-5396238)
 * At the moment, the width and height properties are not coded inside the Rendered
   html.

Viewing 1 replies (of 1 total)

The topic ‘Missing Width/Height Attributes and Optimizing Images’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/special-recent-posts_006699.svg)
 * [Special Recent Posts](https://wordpress.org/plugins/special-recent-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/special-recent-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/special-recent-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/special-recent-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/special-recent-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/special-recent-posts/reviews/)

## Tags

 * [height](https://wordpress.org/support/topic-tag/height/)
 * [optimize images](https://wordpress.org/support/topic-tag/optimize-images/)
 * [width](https://wordpress.org/support/topic-tag/width/)

 * 1 reply
 * 2 participants
 * Last reply from: [Luca Grandicelli](https://wordpress.org/support/users/lgrandicelli/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/missing-widthheight-attributes-and-optimizing-images/#post-5396238)
 * Status: not resolved