Add support for displaying correct colors with PNG files that contain embedded ICC color profiles

This commit is contained in:
Kovid Goyal
2020-08-12 07:48:47 +05:30
parent 6ca1b7c240
commit 5eefd41059
9 changed files with 69 additions and 9 deletions

View File

@@ -18,6 +18,7 @@ Run-time dependencies:
* harfbuzz >= 1.5.0
* zlib
* libpng
* liblcms2
* freetype (not needed on macOS)
* fontconfig (not needed on macOS)
* libcanberra (not needed on macOS)

View File

@@ -4,6 +4,13 @@ Changelog
|kitty| is a feature full, cross-platform, *fast*, GPU based terminal emulator.
To update |kitty|, :doc:`follow the instructions <binary>`.
0.18.4 [2020-08-11]
-------------------
- Add support for displaying correct colors with non-sRGB PNG files (Adds a
dependency on liblcms2)
0.18.3 [2020-08-11]
-------------------

View File

@@ -161,9 +161,10 @@ of transmitting paletted images.
RGB and RGBA data
~~~~~~~~~~~~~~~~~~~
In these formats the pixel data is stored directly as 3 or 4 bytes per pixel, respectively.
When specifying images in this format, the image dimensions **must** be sent in the control data.
For example::
In these formats the pixel data is stored directly as 3 or 4 bytes per pixel,
respectively. The colors in the data **must** be in the *sRGB color space*. When
specifying images in this format, the image dimensions **must** be sent in the
control data. For example::
<ESC>_Gf=24,s=10,v=20;<payload><ESC>\