Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d411196

Browse files
authored
Merge PFM documentation into PPM (#9434)
2 parents 1457c60 + f71d74e commit d411196

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

docs/handbook/image-file-formats.rst

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -828,16 +828,6 @@ PCX
828828

829829
Pillow reads and writes PCX files containing ``1``, ``L``, ``P``, or ``RGB`` data.
830830

831-
PFM
832-
^^^
833-
834-
.. versionadded:: 10.3.0
835-
836-
Pillow reads and writes grayscale (Pf format) Portable FloatMap (PFM) files
837-
containing ``F`` data.
838-
839-
Color (PF format) PFM files are not supported.
840-
841831
Opening
842832
~~~~~~~
843833

@@ -1081,12 +1071,19 @@ following parameters can also be set:
10811071
PPM
10821072
^^^
10831073

1084-
Pillow reads and writes PBM, PGM, PPM and PNM files containing ``1``, ``L``, ``I`` or
1085-
``RGB`` data.
1074+
Pillow reads and writes PBM, PGM, PPM, PNM and PFM files containing ``1``, ``L``, ``I``,
1075+
``RGB`` or ``F`` data.
10861076

10871077
"Raw" (P4 to P6) formats can be read, and are used when writing.
10881078

1089-
Since Pillow 9.2.0, "plain" (P1 to P3) formats can be read as well.
1079+
.. versionadded:: 9.2.0
1080+
"Plain" (P1 to P3) formats can be read.
1081+
1082+
.. versionadded:: 10.3.0
1083+
Grayscale (Pf format) Portable FloatMap (PFM) files containing
1084+
``F`` data can be read and used when writing.
1085+
1086+
Color (PF format) PFM files are not supported.
10901087

10911088
QOI
10921089
^^^

0 commit comments

Comments
 (0)