Title: Responsive Images
Last modified: September 1, 2016

---

# Responsive Images

 *  Resolved [helium3](https://wordpress.org/support/users/helium3/)
 * (@helium3)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/responsive-images-28/)
 * Hi David,
    I am troubleshooting an issue with responsive images not being served.
   I see in my source code `<img aria-describedby="mla_gallery-1-1325" width="601"
   height="900" ... />` I wonder if this size is possibly being forced by MLA, and
   if so how to override this so that width and height are not being output and 
   srcset can serve smaller size when possible? Thanks!
 * [https://wordpress.org/plugins/media-library-assistant/](https://wordpress.org/plugins/media-library-assistant/)

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

 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/responsive-images-28/#post-7577050)
 * Thanks for your question and for including the source code excerpt.
 * MLA emulates the WordPress `[gallery]` shortcode and uses the WordPress `wp_get_attachment_link()`
   function to compose the `<img>` tag. I discovered that if you add a `size=full`
   parameter to your `[mla_gallery` shortcode it will generate a `srcset` attribute(
   like `[gallery]` does).
 * Give that a try and see if it helps in your application. I haven’t considered
   adding more `srcset` support but I am open to ideas for future MLA versions.
 * I will leave this topic unresolved until I hear back from you. Thanks for your
   interest in the plugin.
 *  Thread Starter [helium3](https://wordpress.org/support/users/helium3/)
 * (@helium3)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/responsive-images-28/#post-7577066)
 * Hello David,
 * Thanks very much for your response.
 * I am working on an image-centered photo site and my main concern was more flexibility
   in the generation of larger, one column, mixed orientation galleries. At the 
   time I wrote my main concern was to make vertical images better fit the screen
   while keeping the same column wide enough for the alternating horizontals. I 
   have actually found a fix for that, which may be of help to others. It actually
   makes the images responsive:
 *     ```
       img.attachment-large {
            max-height: 80vh;
            width:auto;
            }
       ```
   
 * Interestingly, this solution will not work on `"full"` images. I am able to get
   the `srcset` to appear in `"full"` as well, but it appears to me that only the
   full size image will be served. If `srcset` support is ever possible, it would
   be a huge benefit to serve smaller images as needed.
 * Again, thanks for your reply.
 * Steve
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/responsive-images-28/#post-7577070)
 * Thanks for your update with the good news and for taking the time to post the
   solution you worked out; very helpful.
 * I will study up on `srcset/sizes` support and see what I can do to improve using
   them in `[mla_gallery]`. I will leave this topic unresolved until I decide what
   to do. Thanks for raising the topic and for your interest in the plugin.
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/responsive-images-28/#post-7577106)
 * I have done more testing with WordPress 4.6. It looks like the WordPress `wp_get_attachment_link()`
   function now generates `srcset` and `sizes` attributes in the `<img >` tags for`[
   gallery]` and `[mla_gallery]` items for all of the available sizes.
 * I am marking this topic resolved, but please update it if your have any problems
   or further questions regarding `[mla_gallery]` support for `srcset/sizes`. Thanks
   for your patience.

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

The topic ‘Responsive Images’ is closed to new replies.

 * ![](https://ps.w.org/media-library-assistant/assets/icon-256x256.png?rev=973502)
 * [Media Library Assistant](https://wordpress.org/plugins/media-library-assistant/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-library-assistant/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-library-assistant/)
 * [Active Topics](https://wordpress.org/support/plugin/media-library-assistant/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-library-assistant/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-library-assistant/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [David Lingren](https://wordpress.org/support/users/dglingren/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/responsive-images-28/#post-7577106)
 * Status: resolved