# NEW Image processing module/partial

**URL:** <https://discourse.gohugo.io/t/new-image-processing-module-partial/35345>\
**Category:** tips & tricks\
**Tags:** modules\
**Created:** [October 28, 2021, 11:35am UTC](https://discourse.gohugo.io/t/new-image-processing-module-partial/35345 "2021-10-28T11:35:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![powerfulwebdesign](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/powerfulwebdesign/32/14227_2.png) [@powerfulwebdesign](https://discourse.gohugo.io/u/powerfulwebdesign)\
**Post date:** [October 28, 2021, 11:35am UTC](https://discourse.gohugo.io/t/new-image-processing-module-partial/35345/1 "2021-10-28T11:35:59Z")

</div>

I have spent a lot of time creating a complex image processing module.

Its inspired by next/image (from next.js). The difference is it does not use excessive code and by default works with lazysizes.js but this can be turned off.

You can use all hugos image processing options.

Its a large partial but most of it doesn’t run out of the box (conditional if statement block most code from running)

Its configurable by copying the text out of config file in the module and pasting into your own params.yaml.

Most options can be set in-line when calling the partials.

Its nearly at BETA stage. Any feedback would be appreciated.

PR’s are welcome.

> **[hugo-image/v2 at master · future-wd/hugo-image](https://github.com/future-wd/hugo-image/tree/master/v2)**
>
> master/v2

---

<div class="post-metadata">

**Author:** ![powerfulwebdesign](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/powerfulwebdesign/32/14227_2.png) [@powerfulwebdesign](https://discourse.gohugo.io/u/powerfulwebdesign)\
**Post date:** [August 26, 2022, 6:03am UTC](https://discourse.gohugo.io/t/new-image-processing-module-partial/35345/2 "2022-08-26T06:03:20Z")

</div>

I have since created a newer version of this module which has much more streamlined configuration and is easier to update.

> [@Image processing module](https://discourse.gohugo.io/t/image-processing-module/39838):
>
> Hi everyone. I have just made a module which creates responsive images. Its actually in its 3rd iteration, but v1 for this repository. It supports the following: minimal config minimal inline code (unless you want to override configurations) outputs original format image plus webp (can be configured) choose from pixel density (1x,2x) or variable with (e.g. 400px, 800px, 1200px) output choose aspect ratio of output image (so multiple images line up properly) integrates with lazysizes, so yo…

---

<div class="post-metadata">

**Author:** ![Georg](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/georg/32/21486_2.png) [@Georg](https://discourse.gohugo.io/u/Georg)\
**Post date:** [August 27, 2022, 11:55am UTC](https://discourse.gohugo.io/t/new-image-processing-module-partial/35345/3 "2022-08-27T11:55:23Z")

</div>

I stumbled upon this just now and will look into your repository. I’ve done something similar but shorter and constrained to my use case.

I am very pleased with lazysizes. It took a whole stack of problems away when we handle responsive images. We don’t have to worry about the calculation of the correct sizes anymore!

---

<div class="post-metadata">

**Author:** ![powerfulwebdesign](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/powerfulwebdesign/32/14227_2.png) [@powerfulwebdesign](https://discourse.gohugo.io/u/powerfulwebdesign)\
**Post date:** [August 28, 2022, 6:37am UTC](https://discourse.gohugo.io/t/new-image-processing-module-partial/35345/4 "2022-08-28T06:37:41Z")

</div>

Hi @Georg I have made a new version of this module here [Image processing module](https://discourse.gohugo.io/t/image-processing-module/39838) its much better and easy to modify if need be.

I was a bit cautious about lazysizes in the beginning, but now I use it primarily for the automatic sizes property, and also for “lazyloading” if I need to swap out a placeholder image when the main image has loaded.

Both these functionalities (sizes and lazyload) can be switched independently in the new module. It also has 3 types of placeholder.

e.g. you can use automated sizes, but use native lazyload without lazysizes if you aren’t using placeholders
