# Image processing: resized images are bigger than original

**URL:** <https://discourse.gohugo.io/t/image-processing-resized-images-are-bigger-than-original/10586>\
**Category:** support\
**Created:** [February 16, 2018, 11:06am UTC](https://discourse.gohugo.io/t/image-processing-resized-images-are-bigger-than-original/10586 "2018-02-16T11:06:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aitva](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/aitva/32/10611_2.png) [@aitva](https://discourse.gohugo.io/u/aitva)\
**Post date:** [February 16, 2018, 11:06am UTC](https://discourse.gohugo.io/t/image-processing-resized-images-are-bigger-than-original/10586/1 "2018-02-16T11:06:36Z")

</div>

Hi everyone,

I am using the image processing feature of Hugo to add responsive image to my website.  
Everything is working perfectly and this is an awesome feature! But, while looking at the network data  
on my website, I noticed that resized PNG images are bigger than the original.

For example, with an image called “apercu-slack.png”:

- the original is 1280x920px and weight 26ko
- the medium version generated by Hugo is 1024x736px and weight 60ko
- the small version generated by Hugo is 600x431px and weight 30ko

Is it to be expected? Is there a parameter to tweak the quality of the generated PNG?

_The original image:_  
 ![apercu-slack](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/2X/9/95fea3add9b9722e8b6370e69d7b0eef9f3fb929.png)

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [February 16, 2018, 12:51pm UTC](https://discourse.gohugo.io/t/image-processing-resized-images-are-bigger-than-original/10586/2 "2018-02-16T12:51:27Z")

</div>

> [@aitva](#):
>
> Is it to be expected? I

It’s not totally surprising, as PNGs can be compressed (and in Photoshop there is even an option to output 8 bit files). We currently use the default (Go) compression settings when encoding PNGs.

To put it in perspective, the “original” which you uploaded to Discourse:

[https://yyz2.discourse-cdn.com/flex036/uploads/gohugo/optimized/2X/9/95fea3add9b9722e8b6370e69d7b0eef9f3fb929\_1\_690x495.png](https://yyz2.discourse-cdn.com/flex036/uploads/gohugo/optimized/2X/9/95fea3add9b9722e8b6370e69d7b0eef9f3fb929_1_690x495.png)

Is now 690 x 495 px at 41,3 KB…

You can see the options here:

> **[Image processing](https://gohugo.io/content-management/image-processing/)**
>
> Resize, crop, rotate, filter, and convert images.

I don’t think the scale filter will have any effect on the image size, and I may investigate more on this and add more options on this later.

Note that for JPEG there is a quality setting, which has a big effect on file sizes.

Could you open up an issue on GitHub so we can investigate a little if there are quality settings we could add (compression, 8 bit maybe).

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [February 16, 2018, 1:31pm UTC](https://discourse.gohugo.io/t/image-processing-resized-images-are-bigger-than-original/10586/3 "2018-02-16T13:31:55Z")

</div>

> <https://github.com/gohugoio/hugo/issues/4417>

---

<div class="post-metadata">

**Author:** ![aitva](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/aitva/32/10611_2.png) [@aitva](https://discourse.gohugo.io/u/aitva)\
**Post date:** [February 16, 2018, 1:33pm UTC](https://discourse.gohugo.io/t/image-processing-resized-images-are-bigger-than-original/10586/4 "2018-02-16T13:33:12Z")

</div>

Thank you for your answer.

I have opened a ticket at [https://github.com/gohugoio/hugo/issues/4416](https://github.com/gohugoio/hugo/issues/4416)
