# Preserve original JPG image on upload

**URL:** <https://forums.concretecms.org/t/preserve-original-jpg-image-on-upload/7571>\
**Category:** Developing with Concrete\
**Created:** [June 7, 2024, 3:59pm UTC](https://forums.concretecms.org/t/preserve-original-jpg-image-on-upload/7571 "2024-06-07T15:59:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbleisch](https://forums.concretecms.org/user_avatar/forums.concretecms.org/dbleisch/32/6192_2.png) [@dbleisch](https://forums.concretecms.org/u/dbleisch)\
**Post date:** [June 7, 2024, 3:59pm UTC](https://forums.concretecms.org/t/preserve-original-jpg-image-on-upload/7571/1 "2024-06-07T15:59:48Z")

</div>

Can I prevent the original image from being compressed by concrete cms during upload? I really appreciate the thumbnail function, when creating and responsive versions.

But sometimes you want the unmodified file, which was optimized exactly for its use before the upload. e.g. progressively optimized JPG’s for header images.

---

<div class="post-metadata">

**Author:** ![Steevb](https://forums.concretecms.org/user_avatar/forums.concretecms.org/steevb/32/3525_2.png) [@Steevb](https://forums.concretecms.org/u/Steevb)\
**Post date:** [June 10, 2024, 10:32am UTC](https://forums.concretecms.org/t/preserve-original-jpg-image-on-upload/7571/2 "2024-06-10T10:32:26Z")

</div>

I’ve never had the problem, I modify and upload as a .webp or jpg image. Which cms version are you using?

---

<div class="post-metadata">

**Author:** ![studio108](https://forums.concretecms.org/user_avatar/forums.concretecms.org/studio108/32/3498_2.png) [@studio108](https://forums.concretecms.org/u/studio108)\
**Post date:** [June 10, 2024, 11:35am UTC](https://forums.concretecms.org/t/preserve-original-jpg-image-on-upload/7571/3 "2024-06-10T11:35:07Z")

</div>

Are you using the systems image Thumbnails system? If you are this will change the size and compression of the uploaded image. To avoid the thumbnail system I sometimes create a file set for images I want left at their original size and set the ‘Conditional Thumbnails’ setting for each of the thumbnail sizes to exclude images that are linked to that file set.

 ![Screenshot 2024-06-10 at 12.42.36](https://forums.concretecms.org/uploads/default/original/2X/f/fa05d22141e55e8a8250389002a4b475af9490ca.jpeg)

---

<div class="post-metadata">

**Author:** ![dbleisch](https://forums.concretecms.org/user_avatar/forums.concretecms.org/dbleisch/32/6192_2.png) [@dbleisch](https://forums.concretecms.org/u/dbleisch)\
**Post date:** [June 10, 2024, 12:36pm UTC](https://forums.concretecms.org/t/preserve-original-jpg-image-on-upload/7571/4 "2024-06-10T12:36:28Z")

</div>

I use the latest, current relaese of Concrete CMS 9.2.9 with the following settings:

 ![image](https://forums.concretecms.org/uploads/default/original/2X/b/b5874e5e4c4ffcfc2af4f66b9cd4f562b7ff104b.png)

In page\_theme.php i have defined the following image set:

```auto
public function getThemeResponsiveImageMap()
	{
		return [
			'xl' => '1200px',
			'lg' => '992px',
			'md' => '768px',
			'sm' => '576px',
			'xs' => '0',
		];
	}

```

But if I upload a **progressiv JPEG** with 2732 x 1406 (378 KB) px, I get a **baseline JPEG** 2732 x 1406 (363 KB) and an image from the thumbnailset **orginial** as **baseline JPEG** with 2732 x 1406 (399px). This means that both are processed on the server side.

---

<div class="post-metadata">

**Author:** ![dbleisch](https://forums.concretecms.org/user_avatar/forums.concretecms.org/dbleisch/32/6192_2.png) [@dbleisch](https://forums.concretecms.org/u/dbleisch)\
**Post date:** [June 10, 2024, 12:37pm UTC](https://forums.concretecms.org/t/preserve-original-jpg-image-on-upload/7571/5 "2024-06-10T12:37:07Z")

</div>

![image](https://forums.concretecms.org/uploads/default/original/2X/3/3154a6717b68c1b563fed6fba2baca2c6e0afe24.png)

---

<div class="post-metadata">

**Author:** ![dbleisch](https://forums.concretecms.org/user_avatar/forums.concretecms.org/dbleisch/32/6192_2.png) [@dbleisch](https://forums.concretecms.org/u/dbleisch)\
**Post date:** [June 10, 2024, 12:37pm UTC](https://forums.concretecms.org/t/preserve-original-jpg-image-on-upload/7571/6 "2024-06-10T12:37:56Z")

</div>

![image](https://forums.concretecms.org/uploads/default/original/2X/b/b6b48a7d765adf2581719a938d5b6d17c206272b.png)

---

<div class="post-metadata">

**Author:** ![studio108](https://forums.concretecms.org/user_avatar/forums.concretecms.org/studio108/32/3498_2.png) [@studio108](https://forums.concretecms.org/u/studio108)\
**Post date:** [June 10, 2024, 2:15pm UTC](https://forums.concretecms.org/t/preserve-original-jpg-image-on-upload/7571/7 "2024-06-10T14:15:25Z")

</div>

I see and understand what you mean. As far as I am aware this isn’t an option within the CMS? One possible workaround is to upload the image file to an external folder hosted on a webserver and use the image’s external URL link using html or the html block? Not an ideal solution if you want to use this method for lots of images.

---

<div class="post-metadata">

**Author:** ![dbleisch](https://forums.concretecms.org/user_avatar/forums.concretecms.org/dbleisch/32/6192_2.png) [@dbleisch](https://forums.concretecms.org/u/dbleisch)\
**Post date:** [June 11, 2024, 9:27am UTC](https://forums.concretecms.org/t/preserve-original-jpg-image-on-upload/7571/8 "2024-06-11T09:27:45Z")

</div>

Thanks alot for your advice.
