Skip to content

Commit a4a1844

Browse files
committed
updating convert_to modes. [docs]
1 parent 67791d1 commit a4a1844

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/image-modes.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,13 @@ When saving image from `Pillow` to `HEIF` format, next modes will be converted a
5151
Mode conversion
5252
---------------
5353

54+
.. note:: HEIF standard does not support 16 bit images, see :ref:`saving-16bit`
55+
5456
For ``HeifImage`` some of these modes can be converted to each other using :py:meth:`~pillow_heif.HeifImage.convert_to` method:
5557

5658
* ``BGRA;16`` --> ``RGBA;10`` or ``RGBA;12``
5759
* ``BGR;16`` --> ``RGB;10`` or ``RGB;12``
58-
* ``RGBA;16`` --> ``RGBA;10`` or ``RGBA;12``
60+
* ``RGBA;16`` --> ``RGBA;10``, ``RGBA;12`` or ``RGBA``
5961
* ``RGB;16`` --> ``RGB;10`` or ``RGB;12``
6062
* ``L;16`` --> ``L;10`` or ``L;12``
6163
* ``I;16`` --> ``L;10`` or ``L;12``
@@ -68,13 +70,11 @@ For ``HeifImage`` some of these modes can be converted to each other using :py:m
6870
* ``BGR`` --> ``RGB``
6971
* ``RGBA`` --> ``BGRA``, ``RGBA;16`` or ``BGRA;16``
7072
* ``RGB`` --> ``BGR``, ``RGB;16`` or ``BGR;16``
71-
* ``BGRA;16`` <--> ``BGRa;16``
72-
* ``BGRA;12`` <--> ``BGRa;12``
73-
* ``BGRA;10`` <--> ``BGRa;10``
74-
* ``BGRA`` <--> ``BGRa``
75-
* ``RGBA;16`` <--> ``RGBa;16``
76-
* ``RGBA;12`` <--> ``RGBa;12``
77-
* ``RGBA;10`` <--> ``RGBa;10``
78-
* ``RGBA`` <--> ``RGBa``
7973

80-
.. note:: HEIF standard does not support 16 bit images, see :ref:`saving-16bit`
74+
Modes with premultiplied Alpha:
75+
* ``BGRa;16`` --> ``RGBa;10`` or ``RGBa;12``
76+
* ``RGBa;16`` --> ``RGBa;10``, ``RGBa;12`` or ``RGBa``
77+
* ``RGBa;12`` --> ``RGBa;16`` or ``BGRa;16``
78+
* ``RGBa;10`` --> ``RGBa;16`` or ``BGRa;16``
79+
* ``BGRa`` --> ``RGBa``
80+
* ``RGBa`` --> ``RGB``, ``BGR``, ``RGBa;16`` or ``BGRa;16``

0 commit comments

Comments
 (0)