Skip to content

Commit e999ffe

Browse files
committed
added note, to open_heif/read_heif's hdr_to_16bit parameter [docs] #96
Signed-off-by: Alexander Piskun <[email protected]>
1 parent 849bdde commit e999ffe

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pillow_heif/heif.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,10 @@ def open_heif(fp, convert_hdr_to_8bit=True, bgr_mode=False, **kwargs) -> HeifFil
442442
443443
:param fp: See parameter ``fp`` in :func:`is_supported`
444444
:param convert_hdr_to_8bit: Boolean indicating should 10 bit or 12 bit images
445-
be converted to 8 bit images during loading. Otherwise, they will open in 16 bit mode.
445+
be converted to 8 bit images during decoding. Otherwise, they will open in 16 bit mode.
446446
:param bgr_mode: Boolean indicating should be `RGB(A)` images be opened in `BGR(A)` mode.
447-
:param kwargs: **hdr_to_16bit** a boolean, indicating that 10/12 bit image should open in 16 bit mode.
447+
:param kwargs: **hdr_to_16bit** a boolean value indicating that 10/12-bit image data
448+
should be converted to 16-bit mode during decoding. `Has lower priority then convert_hdr_to_8bit`!
448449
Default = **True**
449450
450451
:returns: :py:class:`~pillow_heif.HeifFile` object.
@@ -465,9 +466,10 @@ def read_heif(fp, convert_hdr_to_8bit=True, bgr_mode=False, **kwargs) -> HeifFil
465466
466467
:param fp: See parameter ``fp`` in :func:`is_supported`
467468
:param convert_hdr_to_8bit: Boolean indicating should 10 bit or 12 bit images
468-
be converted to 8 bit images during loading. Otherwise, they will open in 16 bit mode.
469+
be converted to 8 bit images during decoding. Otherwise, they will open in 16 bit mode.
469470
:param bgr_mode: Boolean indicating should be `RGB(A)` images be opened in `BGR(A)` mode.
470-
:param kwargs: **hdr_to_16bit** a boolean, indicating that 10/12 bit image should open in 16 bit mode.
471+
:param kwargs: **hdr_to_16bit** a boolean value indicating that 10/12-bit image data
472+
should be converted to 16-bit mode during decoding. `Has lower priority then convert_hdr_to_8bit`!
471473
Default = **True**
472474
473475
:returns: :py:class:`~pillow_heif.HeifFile` object.

0 commit comments

Comments
 (0)