Skip to content

Commit

Permalink
Merge pull request #4 from radarhere/plainPPM
Browse files Browse the repository at this point in the history
Renamed decoder
  • Loading branch information
Piolie committed Mar 21, 2021
2 parents 5e63097 + 8f5d2b4 commit 858eb54
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/PIL/PpmImagePlugin.py
Expand Up @@ -24,9 +24,9 @@

MODES = {
# standard, plain
b"P1": ("plain", "1"),
b"P2": ("plain", "L"),
b"P3": ("plain", "RGB"),
b"P1": ("ppm_plain", "1"),
b"P2": ("ppm_plain", "L"),
b"P3": ("ppm_plain", "RGB"),
# standard, raw
b"P4": ("raw", "1"),
b"P5": ("raw", "L"),
Expand Down Expand Up @@ -351,7 +351,7 @@ def _save(im, fp, filename):
#
# --------------------------------------------------------------------

Image.register_decoder("plain", PpmPlainDecoder)
Image.register_decoder("ppm_plain", PpmPlainDecoder)
Image.register_open(PpmImageFile.format, PpmImageFile, _accept)
Image.register_save(PpmImageFile.format, _save)

Expand Down

0 comments on commit 858eb54

Please sign in to comment.