mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
Merge pull request #8684 from radarhere/spider
This commit is contained in:
commit
bce6097a96
|
@ -267,7 +267,7 @@ def makeSpiderHeader(im: Image.Image) -> list[bytes]:
|
||||||
|
|
||||||
|
|
||||||
def _save(im: Image.Image, fp: IO[bytes], filename: str | bytes) -> None:
|
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")
|
im = im.convert("F")
|
||||||
|
|
||||||
hdr = makeSpiderHeader(im)
|
hdr = makeSpiderHeader(im)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user