This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Color profile issue

Tags: None
(comma "," separated)
User avatar
xrg
Registered Member
Posts
15
Karma
0
OS

Color profile issue

Thu Oct 03, 2013 5:00 pm
If I export from Krita and then upload to a site sometimes the colors are wrong. Running it through GIMP first seems to eliminate the problem. It asks if I want to convert to "sRGB built-in;" Clicking yes, saving, and uploading seems to result in the correct colors.

Anyway, what I'm after is just being able to export from Krita and keeping colors intact. I'm not sure if it's a bug or I'm not setting something correctly. Here is an example of what I mean. It's probably easiest to tell comparing the orange.

Straight out of Krita (wrong color):
Image

After running through GIMP (correct color):
Image


User avatar
JoseConseco
Registered Member
Posts
141
Karma
0

Re: Color profile issue

Fri Oct 04, 2013 7:37 pm
Those images seems too look the same too me. I found that jpeg that are generated in Krita sometimes wont upload to sited eg. deviantart. So today I usually use png's... If you open jpeg in gimp and then save again you will loose some image quality and I would not recomed doing this.


User avatar
TheraHedwig
KDE Developer
Posts
1794
Karma
10
OS

Re: Color profile issue

Mon Oct 07, 2013 1:48 pm
Ah, I know what might be going on here.

XRG, what browser do you use when viewing the pictures?

To explain:
-Krita uses colour profiles throughout it's workflow. If you have an ICC profile for your screen, Krita will standardly use that. You can configure this in configuration options.
-Gimp doesn't use ICC profiles(yet). It therefore asks you whether you want to convert to sRGB(the fallback profile).
-Modern day internet browsers can use the ICC profile of a picture. Most of them take the ICC profile of a picture and use that to convert it to sRGB. Firefox in particular will take the ICC profile of the picture and convert it to the ICC profile of you screen.
-Finally, just because modern day graphics browsers allow for it, it doesn't mean that image uploading services do. It may even be that an image uploading service strips the ICC profile from the meta-data in the name of 'compression'.

To figure out where the snag is, I would try to draw a picture in Krita with an unusual ICC profile. Then go through the process again, and see where the picture starts to look awkward.
User avatar
xrg
Registered Member
Posts
15
Karma
0
OS

Re: Color profile issue

Mon Oct 07, 2013 6:39 pm
Yeah, it appears to be something with Windows 8. They both look the same on Arch Linux. I'll do some testing with various browsers next time I boot into Win8, and see if there are differences there too.


User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: Color profile issue

Tue Oct 08, 2013 8:21 am
Color caliration is getting more and more difficult: did you calibrate your win8 system? Did you check in Krita's settings whether a display profile is set? By default, we use sRGB both for images and for the display profile, but any local calibration can change that.
User avatar
xrg
Registered Member
Posts
15
Karma
0
OS

Re: Color profile issue

Tue Oct 08, 2013 7:58 pm
It's set to whatever Windows 8 is out of the box; finding settings is such a chore in that OS. I'll have to investigate and see what all causes it. It doesn't affect me actually painting or anything, but if people are looking at my images, I want to make sure they see it as closely as I intended. If it was a minor difference I wouldn't worry, but the orange in the first picture appears almost brown.


User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: Color profile issue

Sat Oct 12, 2013 7:48 am
Can you also share the original .kra files? And maybe a screenshot of the color settings page of the Krita settings dialog.
User avatar
xrg
Registered Member
Posts
15
Karma
0
OS

Re: Color profile issue

Sat Oct 12, 2013 11:10 am
KRA is here.

Here is the color difference:
Image
A = Out of Krita and uploaded to a site such as Imgur. (wrong color)
B = Doing a convert in GIMP before uploading. (correct color)

This is the error that pops up whenever I load an image exported from Krita into GIMP. Not sure if it's relevant or not.
Image

Also, just to be clear, I don't fully understand color profiles that well, so it's completely possible this is user error on my behalf.


User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: Color profile issue

Sat Oct 12, 2013 12:07 pm
Hm... If I export that .kra to png or jpg, I don't see the issue. I'm really wondering what's going on here -- the image has an sRGB profile for all layers, which is just fine. And if I load http://i.imgur.com/CNJcCLtl.jpg in Gimp, I don't get an error box either!
User avatar
Pyteo
Registered Member
Posts
50
Karma
1
OS

Re: Color profile issue

Mon Oct 14, 2013 7:47 pm
xrg wrote:KRA is here.

Here is the color difference:
Image
A = Out of Krita and uploaded to a site such as Imgur. (wrong color)
B = Doing a convert in GIMP before uploading. (correct color)

This is the error that pops up whenever I load an image exported from Krita into GIMP. Not sure if it's relevant or not.
Image

Also, just to be clear, I don't fully understand color profiles that well, so it's completely possible this is user error on my behalf.


I have the exact same problem.
I'm running Krita 2.7 on Ubutu 13.04 - 64 bit.
ghevan
Registered Member
Posts
178
Karma
1
OS

Re: Color profile issue

Wed Oct 16, 2013 12:20 am
@TheraHedwig Explained in detail what happens with your image.

@boudewijn Perhaps you clicked "Don't ask me again"? As im getting the "Convert to sRGB" prompt from Gimp with the image you linked.

The strange behavior is that I get the Gimp prompt showing the color profile name as "(Invalid UTF-8 string)" instead of sRGB Built-in. Perhaps the string is saved in UTF encoding instead of ASCII? But I have no knowledge about PNG property specs.

Checking off "Save sRGB profile" check box in the png settings dialog if you don't want to embed color profile information in the png (sometimes this is preferred).

imagemagick identify shows this as the relevant difference between krita output with sRGB checked and unchecked
Code: Select all
Properties:                                                        Properties:
    author:                                                            author:
    date:create: 2013-10-15T19:01:40-05:00                      |      date:create: 2013-10-15T18:57:35-05:00
    date:modify: 2013-10-15T19:01:40-05:00                      |      date:modify: 2013-10-15T18:57:35-05:00
    png:iCCP: chunk was found                                   |      png:cHRM: chunk was found (see Chromaticity, above)
                                                                >      png:gAMA: gamma=0.45455 (See Gamma, above)
    png:IHDR.bit-depth-orig: 8                                         png:IHDR.bit-depth-orig: 8
    png:IHDR.bit_depth: 8                                              png:IHDR.bit_depth: 8
    png:IHDR.color-type-orig: 6                                        png:IHDR.color-type-orig: 6
    png:IHDR.color_type: 6 (RGBA)                                      png:IHDR.color_type: 6 (RGBA)
    png:IHDR.interlace_method: 0 (Not interlaced)                      png:IHDR.interlace_method: 0 (Not interlaced)
    png:IHDR.width,height: 3298, 4076                                  png:IHDR.width,height: 3298, 4076
    png:pHYs: x_res=11811, y_res=11811, units=1                        png:pHYs: x_res=11811, y_res=11811, units=1
                                                                >      png:sRGB: intent=3 (Absolute Intent)
    png:text: 1 tEXt/zTXt/iTXt chunks were found                       png:text: 1 tEXt/zTXt/iTXt chunks were found
    signature: afc0406a846ffae98725c506df5a295267d451cf26b25f48        signature: afc0406a846ffae98725c506df5a295267d451cf26b25f48
  Profiles:                                                     <
    Profile-icc: 656 bytes                                      <
      Description: sRGB built-in                                <
      Manufacturer: sRGB built-in                               <
      Model: sRGB built-in                                      <
      Copyright: No copyright, use freely                       <
  Artifacts:                                                         Artifacts:
    filename: MaterialStudies_Sheetnormal.png                   |      filename: MaterialStudies_Sheetno2.png
    verbose: true                                                      verbose: true
  Tainted: False                                                     Tainted: False
  Filesize: 9.563MB                                                  Filesize: 9.563MB
  Number pixels: 13.44M                                              Number pixels: 13.44M
  Pixels per second: 18.67MB                                    |    Pixels per second: 17.23MB
  User time: 0.700u                                             |    User time: 0.720u
  Elapsed time: 0:01.720                                        |    Elapsed time: 0:01.780
  Version: ImageMagick 6.8.6-8 2013-08-26 Q16 http://www.imagem      Version: ImageMagick 6.8.6-8 2013-08-26 Q16 http://www.imagem


There doesn't seem to be anything weird. For instance, this image does prompt the gimp, but it shows the name of the profile properly => "Pantalla Apple Studio Display calibrado"
Code: Select all
Properties:
    date:create: 2012-10-23T17:35:40-05:00
    date:modify: 2011-09-23T01:11:55-05:00
    png:cHRM: chunk was found (see Chromaticity, above)
    png:iCCP: chunk was found
    png:IHDR.bit-depth-orig: 8
    png:IHDR.bit_depth: 8
    png:IHDR.color-type-orig: 2
    png:IHDR.color_type: 2 (Truecolor)
    png:IHDR.interlace_method: 0 (Not interlaced)
    png:IHDR.width,height: 320, 251
    png:pHYs: x_res=2835, y_res=2835, units=1
    signature: 9e88250c53fc849350a9b25d4d9deafc6150f10884324dbe8071125ddedc815a
  Profiles:
    Profile-icc: 3116 bytes
      Description: Pantalla Apple Studio Display calibrado
      Manufacturer: Pantalla Apple Studio Display calibrado
      Model: Pantalla Apple Studio Display calibrado
      Copyright: Copyright Apple Inc., 2009


User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: Color profile issue

Wed Oct 16, 2013 12:29 pm
Hm, if I remove the gimp config files, I do get the message. However, I'm not convinced that Krita is saving the jpg wrongly: it's possible, of course, but photoshop cs2 doesn't complain and ImageMagick tells me:

Profiles:
Profile-icc: 656 bytes
Description: sRGB built-in
Manufacturer: sRGB built-in
Model: sRGB built-in
Copyright: No copyright, use freely

Which is what I would expect.
tombombadil
Registered Member
Posts
29
Karma
0
OS

Re: Color profile issue

Fri Oct 17, 2014 3:23 pm
I'm bringing this old topic back, as I just found out the same issue still exists. Images i save in krita are incorrectly displayed (vibrant colours seem desaturated) in firefox (but correctly in chromium). If i open the image in gimp it asks if I want to convert the colour space to sRGB built in, and if i do so, the image exported from gimp displays correctly in firefox (it's exactly like xrg stated). I'm not sure how to deal with this issue without running my drawings through gimp before uploading them anywhere...
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: Color profile issue

Mon Oct 20, 2014 12:50 pm
I think that this isn't an issue in Krita; it's an issue in Firefox. Without seeing your original .kra files, I cannot be sure, but I'm guessing you're not using one of the built-in sRGB profiles -- maybe the wide gamut one? Even though sRGB is said to be a standard, it isn't really: http://ninedegreesbelow.com/photography ... rison.html. I'm not sure what Gimp does, I'm guessing that if it encounters an icc profile, it'll always think it needs to convert, even if the profile is sRGB already.

Chromium apparently does color management correctly, reading the embedded profile and converting for display, Firefox apparently doesn't.

You could try to use the "Force convert to sRGB" checkbox in the jpg export dialog, if you're using a non-sRGB profile.
tombombadil
Registered Member
Posts
29
Karma
0
OS

Re: Color profile issue

Tue Oct 21, 2014 10:14 am
I use sRGB built-in, export to jpg or png. If I upload or just open a file from hdd in firefox the colours get altered, so threre is some "conflict" between those two. My case is exactly the same as the persons who created this thread explained, but I use ubuntu adn krita 2.8.1.
http://imgur.com/EoWH5UK
Bottom is a screenshot from ff, top is the original. Two first circles got desaturated, two last ones more saturated.
kra file: http://www.filedropper.com/randomcolour

I don't see the "Force convert to sRGB" checkbox in the jpg export dialog (is it because I use sRGB already?).


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot]