Merge pull request #8684 from radarhere/spider

This commit is contained in:
Hugo van Kemenade 2025-01-10 19:29:23 +02:00 committed by GitHub
commit bce6097a96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)