Color changes after exporting or importing

Hello there!

I know that some people have already talked about this kind of issue (dealing with color profiles), but I really can’t find a solution

So, here’s my problem, which I’ve had for quite a while now:

First, when I'm exporting an image, it changes the colors slightly

Here is a screenshot of the Krita view (on the left), and the exported image opened with Firefox and MacOs viewer app on the right.

I’m using the color space sRGB built-in here.

Secondly, when I import an image, it changes its colors slightly too

We could think that the color change is just set back to normal when importing the image that was exported, but not really

Capture d’écran 2024-07-05 à 16.49.53

On the right: the default blue color in Krita,
On the left: the image exported, then imported into Krita.

There really is a difference (slight, but present)

What was the source color model and profile? sRGB built-in is not the best option, it assumes a CRT monitor, sRGB-elle-V2-srgbtrc is the better option because it has some fixes. Mac uses a different color profile, make sure Krita is set up to use it for Display (in Krita settings not for the document). The image viewer is not color managed so isn’t firefox. They will always show colors weird. When you export the file you would assume embedding the color profile is the best option but that usually breaks applications that are not color manged (like the image viewer of Firefox because they ignore the profile data or interpret the extra data as something different). Then again when you import the file later that was previously exported without the color profile it doesn’t really know what color profile to assume and uses some default (you might came across a dialog asking this when you at some point drag and droped a file into a krita document). Then you get the slight difference you see in your last example.

Personally I made it a habit to put in the file name the profile I exported it with, so I know later. And also never keep working on an exported file, only the kra file as a single source of truth.

And to make matters worse, when you look at the file on a different device or monitor colors can look different again. I have a color calibrated monitor and a “trashy one” and before publishing to the web I always move my file over to the trashy one to see how other people probably see it on their normal screens.

1 Like

Thank you for the answer, and for all these informations!

I found the solution to my problem, it was the model used for the document (set to YCbCr).

This window opens from the menu bar, by navigating to image → properties.

If anyone is encountering the same problem, we can also change this when creating a new image:

However, I’m still wondering why this causes such a difference using the YCbCr model (even when importing the Krita file as a new layer, or by embedding the profile in the exported image). It’s quite interesting!

I appreciate very much your help and your expertise, thanks again!

There is some good information at:
https://www.cambridgeincolour.com/color-management-printing.htm
It gives a good overview of the whole color management topic (it is not specific to Krita).

Here in the krita-artists forum are:

and


Regarding Firefox color management settings - I put together what I found about it over the time - actually Firefox has some kind of color management:

Type:
about:config
into the search bar to get to those settings.

Now I only have to somehow get everyone looking at my images to set these correctly.

Firefox only supports v2 of icc profile I think so it is also not full support.

Just two posts above you can see that Firefox supports V2 and V4.

By default Firefox does use color management for images that have an icc tag and it does this with mode “perceptual”. As long as you take care that your images have the i.e. sRGB tag, everything is fine :slight_smile:
And that most computer users don’t have or use a display icc profiles is not solvable by Krita or Firefox - but we are living with that for decades without the world going down :slight_smile:

The issue is that it mostly only works when you have control over it, like on your own website but it breaks as soon as you upload something somewhere. Even gallery websites dedicated to art often don’t manage to keep the profile intact, actually I didn’t came across a single one that does. Standard sRGB is basically the only “safe”. I especially hate it when websites put their own filters on images but that’s another issue.

Yep, its more or less sRGB or nothing.

As far as I know it is bugged. See https://bugzilla.mozilla.org/show_bug.cgi?id=1375423

Also check if it works here -https://www.color.org/version4html.xalter

2 Likes

@raghukamath
you are right with respect to older Firefox - luckily the bug was fixed in FF 108.

The images on the testpage you posted are shown correctly for the v2 and v4 parts.

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.