Resized images losing saturation

Hi,

I have an art gallery client running Kirby 4.8.0, and we are having issues with uploaded images losing saturation when resized by Kirby. Below is my file blueprint:

/site/blueprints/files/image.yml

title: Image
accept: image/*
create:
  width: 2880
fields:
  permalink:
    type: info
    label: Permalink
    text: "{{file.permalink}}"

I am using the default image driver, which I believe is GD.

Uploaded images are in Adobe RGB (1998) colour space, whereas when they have been resized they are in sRGB IEC61966-2.1. I believe this is what is causing the loss in saturation.

Below is a comparison to illustrate - on the left is the original image, on the right the one after upload and resize. The reds and browns are noticeably duller.

I know this topic has been mentioned before, but I can’t find a definitive answer of the best way of addressing this. For this client keeping the colours true is of course very important.

If anyone can offer any help that would be super.

The gd library does not support color profiles.

Thank you for your reply.

Would your suggestion then be to switch to im for image processing on the site? Would this solve the issue, or is there another approach I should be looking at?

I don’t want to put the burden on the client to pre-process the images, so ideally need a setup where they can continue uploading images as they have been, with that Adobe RGB (1998) colour space.