Images color quality

Hello everyone,

I’m creating a photographer portfolio and when uploading photos, the color of them appears modified. I’ve checked if the previous compression or edit was the problem but it’s not. The color change once uploaded.

Is this common? Is there a solution?

Thanks in advance

My guess would be that you are uploading images in CMYK perhaps? Thumbs will be converted to RGB. That might be the issue.

Does this only happen with thumbs or with any uploaded image even if you show it full size on the frontend (the Panel creates thumbs and color profiles are stripped from thumbs).

Please check if you have color profiles embedded in your photos. Browsers like Safari respect these profiles, Firefox does not. The color profile might get removed when thumbs get created.

i originally created my image optim api thumbdriver plugin while working on a photographers agency website. the imageoptim api is used instead of the imagik or GD drivers and colors are very close to the original no matter the original color profile. you can test it with a free image optim api account but to use in production you will need a paid account (~ 9$/month).

To keep color profiles:

kirby/src/Image/Darkroom/ImageMagick.php

protected function strip(string $file, array $options): string
    {
        // return '-strip';
        return '';
    }

config.php

'thumbs' => [
        'driver'    => 'im'
    ],

And make sure to delete the media folder to see the effect of newly generated images :slight_smile:

1 Like