# Does processing an image twice reduce the quality twice?

**URL:** <https://discourse.gohugo.io/t/does-processing-an-image-twice-reduce-the-quality-twice/43754>\
**Category:** support\
**Created:** [April 5, 2023, 2:15am UTC](https://discourse.gohugo.io/t/does-processing-an-image-twice-reduce-the-quality-twice/43754 "2023-04-05T02:15:45Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![andrewd72](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/andrewd72/32/18371_2.png) [@andrewd72](https://discourse.gohugo.io/u/andrewd72)\
**Post date:** [April 5, 2023, 11:14am UTC](https://discourse.gohugo.io/t/does-processing-an-image-twice-reduce-the-quality-twice/43754/5 "2023-04-05T11:14:38Z")

</div>

Some discussion on intermediate images here:

> [@How to "ignore" intermediate images](https://discourse.gohugo.io/t/how-to-ignore-intermediate-images/42640):
>
> I have a slightly complex render-image hook, it takes a large image, resizes, sharpens at the reduced size then resize to the same size to lower quality. Images look perfectly crisp, couldn’t do it server side, loving the power of Hugo. So, unsurprisingly, on top of the original image the processing chain creates three images for each final output size. Original Resized Resized and sharpened Final output (which gets the .RelPermalink) I’ve been trying to only have the final output get copied…

Your final quality maths won’t be as simple for two “quality 75” operations.

For best quality for multiple operations you could use a tiff intermediate or a higher quality jpg.  
To resize to multiple sizes, you might as well start from the original source for each case.

---

_[View the full topic](https://discourse.gohugo.io/t/does-processing-an-image-twice-reduce-the-quality-twice/43754)._
