# Processing changes the colors in the loaded image

**URL:** <https://discourse.processing.org/t/processing-changes-the-colors-in-the-loaded-image/39224>\
**Category:** Processing\
**Created:** [October 12, 2022, 8:35am UTC](https://discourse.processing.org/t/processing-changes-the-colors-in-the-loaded-image/39224 "2022-10-12T08:35:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![apac](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@apac](https://discourse.processing.org/u/apac)\
**Post date:** [October 12, 2022, 8:35am UTC](https://discourse.processing.org/t/processing-changes-the-colors-in-the-loaded-image/39224/1 "2022-10-12T08:35:24Z")

</div>

I am finding that just loading an image in Processing and then saving the image changes the colors in the image. I am not doing any changes to the image. Simply loading and saving. However, I can see a slight difference in the colors. The source image has more ‘redness’ than the saved image. I expected them to be identical.

It is important that Processing maintains the original colors of the image, and therefore is a problem. I have attached the source image. Attaching a tif file is not allowed, so you might have to run the program to see the difference in colors. It is a slight difference only but the difference does exist.

Is it a bug in either the loadImage function or save function ? How can this be resolved ?

This is the code:

```auto
PImage img_edited;

void setup()
{
      noLoop();
}

void draw() 
{
  img_edited = loadImage("target/source_img.png");
  img_edited.save("img_tmp"+".tif");
}

```

---

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [October 12, 2022, 10:06am UTC](https://discourse.processing.org/t/processing-changes-the-colors-in-the-loaded-image/39224/2 "2022-10-12T10:06:20Z")

</div>

Hi @apac,

Can you provide a download link to the original image? (you can use privacy friendly drop service like: [https://drop.chapril.org/](https://drop.chapril.org/))

We can then reproduce the issue on our own.
