Page 1 of 1

[Confirmed ok] ColorSync: GC correctly ignores RGB color profile embedded into grayscale image

Posted: Thu Nov 17, 2022 9:16 pm
by porg
👇 Original headline was 👇
ColorSync: GC autoassigns sRGB to grayscale image then informs that it dropped sRGB as incompatible with grayscale


• Preferences > Open > Color Profiles > When opening a file which has no profile then [ Assign the default profile ▾ ] sRGB.icc
• I open "grayscale-image.png". This triggers the following dialog:
• The image "grayscale-image.png" contains a RGB color profile. But the image is in Grayscale color model. So, the profile will be dropped.

[ Okay ] [ ] Do not show this again


So what seemingly happens is that:

1) GC first autoassigns sRGB as the color profile (in memory only, not persisted to the file).
2) Then later comes the sanity check "Does the (embedded) profile (e.g. sRGB) contradict the color depth (grayscales)?" If yes through that dialog.

Please check whether the interplay of that sanity check plays well together when the color profile is assigned via user ad-hoc (dialog) or automatically (from preferences).

Re: ColorSync: GC autoassigns sRGB to grayscale image then informs that it dropped sRGB as incompatible with grayscale

Posted: Fri Nov 18, 2022 6:28 am
by forum_adm
I rechecked it here. A do not auto assign a profile to a grayscale image. That is only be done for RGB images.

Does you PNG maybe already contain a profile?

Please forward the file.

Re: ColorSync: GC autoassigns sRGB to grayscale image then informs that it dropped sRGB as incompatible with grayscale

Posted: Fri Nov 18, 2022 1:30 pm
by porg
I sent you the file for inspection.

Please feel free to answer right here in the forum thread.

Re: ColorSync: GC autoassigns sRGB to grayscale image then informs that it dropped sRGB as incompatible with grayscale

Posted: Sun Nov 20, 2022 3:53 pm
by forum_adm
I checked the file with ExifTool.

The PNG is in grayscale mode (only one channel with 8 bit) - but it contains a RGB color profile.
So, the message is correct.
Screenshot 2022-11-19 at 19.22.46.jpg
Screenshot 2022-11-19 at 19.22.46.jpg (295.43 KiB) Viewed 921 times

Re: ColorSync: GC autoassigns sRGB to grayscale image then informs that it dropped sRGB as incompatible with grayscale

Posted: Mon Nov 21, 2022 11:03 am
by porg
Thanks for looking into this!

The file had this genesis:
1) Screenshot taken with macOS native screen capture or Snagit, exported as PNG.
2) PNG optimized with ImageOptim. If it detects that an RGB only contains grayscale colors then it converts it to grayscales to save data. But it does not correct the color profile accordingly. And it was also set to leave the metadata intact, so no profile stripping. Outcome: Grayscale image with an RGB color profile, a contradiction.

So GraphicConverter detected that anomaly correctly.