Title: Image optimisation
Last modified: August 30, 2016

---

# Image optimisation

 *  [myput](https://wordpress.org/support/users/myput/)
 * (@myput)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/image-optimisation/)
 * Hi,
 * Thanks for this cool plugin!
    I have a problem with my image optimisation .. 
   On GTMetric or Google Insight or others .. I have the same warning for the optimisation.
   The images doesn’t have a fixed size:
 * Message: Specify image dimensions
 * Do you have a solution for this?
 * Thanks
 * [https://wordpress.org/plugins/instagram-feed/](https://wordpress.org/plugins/instagram-feed/)

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

 *  Plugin Author [smashballoon](https://wordpress.org/support/users/smashballoon/)
 * (@smashballoon)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/image-optimisation/#post-6382050)
 * Hey myput,
 * We don’t set the width and height attributes on the image element in the HTML
   itself as we set it using CSS. We do this as the feed is responsive and so the
   images size changes based on which device you view them on. I can do some testing
   in the next update to see whether it’s feasible for us to add the width and height
   into the HTML and still maintain the responsive sizing.
 * In the meantime, if you’d like to add them in manually then I can give you directions
   on how to edit the plugin source code to add them in if you like, although it
   may affect the responsive layout of the feed.
 * John
 *  [Jon Fergus](https://wordpress.org/support/users/jon-fergus/)
 * (@jon-fergus)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/image-optimisation/#post-6382282)
 * Wondering if there’s been a solution to this. I get a very poor rating on the
   pagespeed element “specify image dimensions” almost solely due to the instagram
   images. Have you been able to look into setting the width and height attributes?
 *  Plugin Contributor [Craig at Smash Balloon](https://wordpress.org/support/users/craig-at-smash-balloon/)
 * (@craig-at-smash-balloon)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/image-optimisation/#post-6382284)
 * Hey Jon,
 * Our developer is still working on a permanent solution but you can add a width
   and height manually in the mean time. Here’s how you can add it manually right
   now:
 * On line 114 of sb-instagram.js add the width and height part in bold:
 * template: ‘<div class=”sbi_item sbi_type_{{model.type}} sbi_new” id=”sbi_{{id}}”
   data-date=”{{model.created_time_raw}}”><div class=”sbi_photo_wrap”>[<img src=”{{image}}” alt=”{{caption}}” **width=”100″ height=”100″ **/>](https://wordpress.org/support/topic/image-optimisation/{{link}}?output_format=md)
   </div></div>’,

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

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

 * ![](https://ps.w.org/instagram-feed/assets/icon-256x256.png?rev=2700807)
 * [Smash Balloon Social Photo Feed – Easy Social Feeds Plugin](https://wordpress.org/plugins/instagram-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/instagram-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/instagram-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/instagram-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/instagram-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/instagram-feed/reviews/)

## Tags

 * [Dimension](https://wordpress.org/support/topic-tag/dimension/)
 * [images](https://wordpress.org/support/topic-tag/images/)
 * [optimisation](https://wordpress.org/support/topic-tag/optimisation/)

 * 3 replies
 * 4 participants
 * Last reply from: [Craig at Smash Balloon](https://wordpress.org/support/users/craig-at-smash-balloon/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/image-optimisation/#post-6382284)
 * Status: not resolved