---
title: "Simple Responsive Images with Jekyll | Netlify"
description: "Realize the speed, agility and performance of a scalable, composable web architecture with Netlify. Explore the composable web platform now!"
source: "https://www.netlify.com/blog/2015/08/20/simple-responsive-images-with-jekyll/"
last_updated: "2026-07-10T18:16:22.000Z"
---
[Jekyll Srcset](https://github.com/netlify/jekyll-srcset) is a small plugin for Jekyll that may solve your most important responsive image needs, without making things ridiculously complicated.

Here’s how you would use it in a Liquid template:

```
{%raw%}{% image_tag src=page.thumbnail width="200" %}{%endraw%}
```

With a page with cover image `/thumb.jpg` with the dimensions 500x500, this will output the following img tag and generate all the needed image variations:

```
<img src="/thumb-200x200.jpg" srcset="/thumb-200x200.jpg 1x, /thumb-400x400.jpg 2x, /thumb-500x500.jpg 3x">
```

Managing images in a responsive design is something that can reach almost any level of complexity, when you’re managing different devices, aspect rations, art direction based on breakpoints and varying pixel densities.

Sometimes, however, just a few tricks can go a long way.

Not long ago, in the midst of much debate over different standards, all the modern browsers started to support the new `srcset` attribute on `img` tags, to some degree.

A lot has been written about picture tags, srcset attributes and all the potential control this gives over image variations, but all these options sometimes make responsive images seem so hard that you might be tempted to just skip dealing with it all together.

That’s a shame, because the most basic use of the `srcset` attribute is so simple that there’s really no reason not to take advantage of it.

Just add a srcset attribute to your img, specifying an image to use for 1x pixel density, 2x pixel density and 3x pixel density, and then let the browser worry about picking the best image.

That little fix alone will let you save lots of bandwidth for low pixel density devices while serving crisp images to Retina screens, and without having to deal with polyfills or all the verbose markup of a picture tag muddled to work in all browsers…

This new [responsive image Jekyll plugin](https://github.com/netlify/jekyll-srcset) makes it so straight forward to add a srcset attribute to your images, that there’s really no excuse not to. Just add the plugin to your Gemfile and start using `{%raw%}{% image_tag %}{%endraw%}` instead of `<img>` in your templates.

You can see it in action on this very page, just check the [Liquid template](https://github.com/netlify/netlify-home/blob/master/_layouts/post.html) for the blog post you’re reading right now.

Share & enjoy!

### Share

-   [X (fka Twitter)](https://twitter.com/intent/tweet?text=Simple Responsive Images with Jekyll&url=https://www.netlify.com/blog/2015/08/20/simple-responsive-images-with-jekyll//)
-   [LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.netlify.com%2Fblog%2F2015%2F08%2F20%2Fsimple-responsive-images-with-jekyll%2F%2F)
-   [Facebook](https://www.facebook.com/sharer.php?u=https://www.netlify.com/blog/2015/08/20/simple-responsive-images-with-jekyll//)
-   [Bluesky](https://bsky.app/intent/compose?text=Simple Responsive Images with Jekyll+https://www.netlify.com/blog/2015/08/20/simple-responsive-images-with-jekyll//)

* * *

### Tags

-   [Jekyll](/blog/tags/jekyll/)
-   [Plugins](/blog/tags/plugins/)
-   [responsive images](/blog/tags/responsive-images/)
-   [Tools](/blog/tags/tools/)
-   [Design](/blog/tags/design/)

## Keep reading

![](/_astro/bbe3cfe0b5d5228f5d0a66e26ce057de315c7712-1200x675_ZQfk21.webp)

Tools & Services December 3, 2025

[

### Vibe coding to production with Kiro powers

](/blog/vibe-coding-production-kiro-powers)

-   ![Profile picture of Gehrig Kunz](/_astro/b4e9f58d914d1334ea70d53ea55a1f26b26f1445-512x512_17SwOI.webp)
    
    Gehrig Kunz
    

![](/_astro/b596a7453ede5fe6739bd12506636fe522828198-2400x1351_1ANtEG.webp)

Tools & Services February 21, 2025

[

### Secure local development with Codezero for Netlify

](/blog/secure-local-development-codezero)

-   Kathleen Randall
    

## Recent posts

News & Announcements June 25, 2026

[

### Netlify Functions, designed for Agent Experience

](/blog/netlify-functions-designed-for-agent-experience)

-   ![Profile picture of Eduardo Bouças](/_astro/52958f21e8450baf6d8e60302341a984e220c0cd-512x512_13VDlu.webp)
    
    Eduardo Bouças
    

News & Announcements June 24, 2026

[

### How we measure Netlify’s Agent Experience

](/blog/how-we-measure-netlify-agent-experience)

-   ![Profile picture of Sean Roberts](/_astro/bbf2243f8171dbddd80ab2103622106cef84d125-512x512_Z1d2LKE.webp)
    
    Sean Roberts
    

Guides & Tutorials May 15, 2026

[

### How to build a real-time AI chatbot in minutes with Netlify Agent Runners (no backend)

](/blog/how-to-build-a-real-time-ai-chatbot-in-minutes-with-netlify-agent-runners-no-backend)

-   ![Profile picture of Nahrin Jalal](/_astro/f0e7c8f227a03fe58340c99ef5439d5a896c0733-272x272_Z23kDpD.webp)
    
    Nahrin Jalal
    

![](/_astro/3f255b372fa958df35802666ee33b4609b2d71bd-1200x1586_1VtE2D.webp)

### How do the best dev and marketing teams work together?

[Access the report](https://www.netlify.com/reports/2024-leadership-trend-report/access/)