# How to regenerate responsive images in ghost

**URL:** <https://forum.ghost.org/t/how-to-regenerate-responsive-images-in-ghost/11453>\
**Category:** Developer help\
**Created:** [January 17, 2020, 2:06pm UTC](https://forum.ghost.org/t/how-to-regenerate-responsive-images-in-ghost/11453 "2020-01-17T14:06:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ENAMUL\_HAQUE](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/enamul_haque/32/16837_2.png) [@ENAMUL\_HAQUE](https://forum.ghost.org/u/ENAMUL_HAQUE)\
**Post date:** [January 17, 2020, 2:06pm UTC](https://forum.ghost.org/t/how-to-regenerate-responsive-images-in-ghost/11453/1 "2020-01-17T14:06:08Z")

</div>

Hi,  
I created a blog site and I used responsive image size for the feature image of the post. It was working fine.  
I changed the image size later but the image size is regenerating. How can I solve these issues?

[http://kalvin.electronthemes-ghost.com/make-healthy-foods-using-these-4-food-for-life-products/](http://kalvin.electronthemes-ghost.com/make-healthy-foods-using-these-4-food-for-life-products/)

How can I regenerate all images?

Thanks

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [January 17, 2020, 2:38pm UTC](https://forum.ghost.org/t/how-to-regenerate-responsive-images-in-ghost/11453/2 "2020-01-17T14:38:19Z")

</div>

Any image uploaded via the admin will be regenerated upon the first request for it after the new `package.json` image size config is applied. 🙂

---

<div class="post-metadata">

**Author:** ![ENAMUL\_HAQUE](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/enamul_haque/32/16837_2.png) [@ENAMUL\_HAQUE](https://forum.ghost.org/u/ENAMUL_HAQUE)\
**Post date:** [January 17, 2020, 2:56pm UTC](https://forum.ghost.org/t/how-to-regenerate-responsive-images-in-ghost/11453/3 "2020-01-17T14:56:52Z")

</div>

I uploaded image in the post when I did post in the site. But I used image responsive code later.  
Now image is not showing as responsive image size

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [January 17, 2020, 3:38pm UTC](https://forum.ghost.org/t/how-to-regenerate-responsive-images-in-ghost/11453/4 "2020-01-17T15:38:38Z")

</div>

Could you be a bit more clearer with what you mean by “responsive code”?

---

<div class="post-metadata">

**Author:** ![ENAMUL\_HAQUE](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/enamul_haque/32/16837_2.png) [@ENAMUL\_HAQUE](https://forum.ghost.org/u/ENAMUL_HAQUE)\
**Post date:** [January 17, 2020, 3:52pm UTC](https://forum.ghost.org/t/how-to-regenerate-responsive-images-in-ghost/11453/5 "2020-01-17T15:52:27Z")

</div>

Yes, responsive code like this

```auto

<img class="post-thumbnail" 
    srcset="{{img_url feature_image size="s"}} 300w,
            {{img_url feature_image size="m"}} 600w,
            {{img_url feature_image size="l"}} 1200w,
            {{img_url feature_image size="xl"}} 2000w"
    sizes="(max-width: 767px) 550px,(max-width: 991px) 700px,(max-width: 1199px) 950px, (max-width: 1400px) 1200px, 1200px"
    src="{{img_url feature_image size="l"}}" alt="{{title}}">

```

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [January 17, 2020, 4:07pm UTC](https://forum.ghost.org/t/how-to-regenerate-responsive-images-in-ghost/11453/6 "2020-01-17T16:07:39Z")

</div>

I see, and did you reflect those changes in the theme `package.json`? There’s an example in our docs:

> **[How to use responsive images in Ghost themes](https://ghost.org/docs/themes/assets/)**
>
> Ghost themes support automatic image resizing, allowing you to use a minimal handlebars helper to output different image sizes.
