# Does ghost reduces the quality of an image after being uploaded?

**URL:** <https://forum.ghost.org/t/does-ghost-reduces-the-quality-of-an-image-after-being-uploaded/8208>\
**Category:** Developer help\
**Created:** [July 10, 2019, 4:16pm UTC](https://forum.ghost.org/t/does-ghost-reduces-the-quality-of-an-image-after-being-uploaded/8208 "2019-07-10T16:16:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmuzquiz](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/lmuzquiz/32/598_2.png) [@lmuzquiz](https://forum.ghost.org/u/lmuzquiz)\
**Post date:** [July 10, 2019, 4:16pm UTC](https://forum.ghost.org/t/does-ghost-reduces-the-quality-of-an-image-after-being-uploaded/8208/1 "2019-07-10T16:16:29Z")

</div>

I am uploading images for example at 22kb and after being uploaded through the ghost admin its size is 16kb, so i am wondering if ghost “optimizes” images in some way.

Does anybody know about this?

---

<div class="post-metadata">

**Author:** ![naz](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/naz/32/30666_2.png) [@naz](https://forum.ghost.org/u/naz)\
**Post date:** [July 10, 2019, 4:34pm UTC](https://forum.ghost.org/t/does-ghost-reduces-the-quality-of-an-image-after-being-uploaded/8208/2 "2019-07-10T16:34:00Z")

</div>

Hi @lmuzquiz! Yes, Ghost optimizes images by default. You can read more about the configuration and how it works here:

> **[Configuration - Adapt your publication to suit your needs](https://ghost.org/docs/config/)**
>
> Find out how to configure your Ghost publication or override Ghost's default behaviour with robust config options, including mail, storage, scheduling and more!

---

<div class="post-metadata">

**Author:** ![lmuzquiz](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/lmuzquiz/32/598_2.png) [@lmuzquiz](https://forum.ghost.org/u/lmuzquiz)\
**Post date:** [July 10, 2019, 4:50pm UTC](https://forum.ghost.org/t/does-ghost-reduces-the-quality-of-an-image-after-being-uploaded/8208/3 "2019-07-10T16:50:05Z")

</div>

Thanks, i tried to find that first but could not find anything on the documentation search. I will read that. Thanks.

---

<div class="post-metadata">

**Author:** ![lmuzquiz](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/lmuzquiz/32/598_2.png) [@lmuzquiz](https://forum.ghost.org/u/lmuzquiz)\
**Post date:** [July 10, 2019, 5:32pm UTC](https://forum.ghost.org/t/does-ghost-reduces-the-quality-of-an-image-after-being-uploaded/8208/4 "2019-07-10T17:32:48Z")

</div>

I think the 80% quality image optimization explanation is ambiguos. Clarification needs to be made. Does the image is compressed 80% (100kb x .2 = 20kb) or does the uploaded image will have 80% of the original quality? (100kb x .8 = 80kb).

Please include a detailed description of your changes and provide before/after screenshots if applicable.

Submitted a pull request

---

<div class="post-metadata">

**Author:** ![egg](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/egg/32/1691_2.png) [@egg](https://forum.ghost.org/u/egg)\
**Post date:** [July 11, 2019, 2:21am UTC](https://forum.ghost.org/t/does-ghost-reduces-the-quality-of-an-image-after-being-uploaded/8208/5 "2019-07-11T02:21:34Z")

</div>

The image is compressed to (not by) 80% _quality_

JPEG quality compression and filesize do not scale linearly, which might be a cause of confusion for how much we’re compressing the images!

[JPEG - Wikipedia](https://en.wikipedia.org/wiki/JPEG#Effects_of_JPEG_compression) This can give you an idea of how varied the filesize is from the compression

---

<div class="post-metadata">

**Author:** ![Theodorico\_Carvalho](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/theodorico_carvalho/32/20707_2.png) [@Theodorico\_Carvalho](https://forum.ghost.org/u/Theodorico_Carvalho)\
**Post date:** [September 4, 2023, 2:05pm UTC](https://forum.ghost.org/t/does-ghost-reduces-the-quality-of-an-image-after-being-uploaded/8208/6 "2023-09-04T14:05:55Z")

</div>

Is there a way to deactivate this?

---

<div class="post-metadata">

**Author:** ![RyanF](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ryanf/32/17448_2.png) [@RyanF](https://forum.ghost.org/u/RyanF)\
**Post date:** [September 8, 2023, 5:55pm UTC](https://forum.ghost.org/t/does-ghost-reduces-the-quality-of-an-image-after-being-uploaded/8208/7 "2023-09-08T17:55:14Z")

</div>

You disable image compression via your site’s configuration. See the docs: [Configuration - Adapt your publication to suit your needs](https://ghost.org/docs/config/#compress)

In general, however, this isn’t advised as it means heavier pages and slower loading times.

---

<div class="post-metadata">

**Author:** ![nehakakar](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/nehakakar/32/28483_2.png) [@nehakakar](https://forum.ghost.org/u/nehakakar)\
**Post date:** [January 19, 2024, 7:01am UTC](https://forum.ghost.org/t/does-ghost-reduces-the-quality-of-an-image-after-being-uploaded/8208/8 "2024-01-19T07:01:13Z")

</div>

It might employ compression techniques or resizing to make images more web friendly. The reduction in file size from 22kb to 16kb suggests some form of optimization. You can check [document](https://ghost.org/docs/themes/assets/) for more information and if you need some more information then read [Image compression - Wikipedia](https://en.wikipedia.org/wiki/Image_compression) and manually you can compress your images through online website such as [https://jpegcompressor.com/](https://jpegcompressor.com/).  
Thank you
