Skip to content

Commit

Permalink
Merge pull request #8684 from radarhere/spider
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Jan 10, 2025
2 parents 8878511 + 64bfdff commit bce6097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/SpiderImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def makeSpiderHeader(im: Image.Image) -> list[bytes]:


def _save(im: Image.Image, fp: IO[bytes], filename: str | bytes) -> None:
if im.mode[0] != "F":
if im.mode != "F":
im = im.convert("F")

hdr = makeSpiderHeader(im)
Expand Down

0 comments on commit bce6097

Please sign in to comment.