Skip to content

Commit

Permalink
Only F mode starts with F
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jan 10, 2025
1 parent 8878511 commit 64bfdff
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 64bfdff

Please sign in to comment.