Support for Wide Gamut color profiles/monitors
- iTerm2 version:3.1.5
- OS version:10.13.2
Detailed steps to reproduce the problem:
- Open up sublime text and use a theme with the same colors (Identical RGB hex code)
- Ensure you have a wide gamut monitor. I am using LG 31MU97 with almost 99% Adobe RGB color gamut coverage
- Select a wide gamut color profile on MacOS (Settings > Display > Color)
- Compare the same hex code color on iterm.
Description: Colors are shrunken down to sRGB gamut space in iTerm. Interestingly, the color picker tool when you try to change colors in the iTerm > Preferences > Profiles Tab > Colors Tab > Color picker, MacOS's built in color profile shows the full gamut. But once I pick a color (outside of sRGB gamut), iTerm brings it down to sRGB gamut by means of something called "Perceptual" correction.
I use Adobe products and there are two ways to shrink a wide gamut color space to a narrow one. Perceptual or Relative. iTerm appears to do perceptual correction which scales all colors evenly. Relative color correction only deals with out of gamut colors and does not scale in-gamut colors (meaning, colors that are in both sRGB color space and Adobe RGB color space). But, I could be wrong. Long story short, it would be nice if iTerm can look up what MacOS color space is and use it to display colors.
I tried to take a screenshot of side-by-side comparison of the same exact theme in Sublime Text vs. iTerm, but once I take a screenshot - MacOS treats screenshots as sRGB. So in the screenshot, the color comparison doesn't work and both colors are the same. But trust me, there is a massive difference if you have a wide gamut monitor. Its only a matter of time when we will have all monitors in wide gamut. All Apple displays are wide gamut (I think P3 gamut which is almost as big as Adobe RGB).
I have attached a screenshot anyways, even though the colors appear to be the same after taking the screen shot. On the left is sublime text (the cyan is so amazingly saturated) and on the right is iTerm (faded cyan).
What should have happened: Colors should appear with correct saturation just like any color managed software (Photoshop, Illustrator, Sublime Text). iTerm2 does not appear to have color management built in.