mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-24 00:46:16 +03:00
Merge pull request #6660 from radarhere/print
This commit is contained in:
commit
44510d2931
|
@ -6,10 +6,8 @@ from PIL import Image, ImageMath
|
|||
def pixel(im):
|
||||
if hasattr(im, "im"):
|
||||
return f"{im.mode} {repr(im.getpixel((0, 0)))}"
|
||||
else:
|
||||
if isinstance(im, int):
|
||||
return int(im) # hack to deal with booleans
|
||||
print(im)
|
||||
elif isinstance(im, int):
|
||||
return int(im) # hack to deal with booleans
|
||||
|
||||
|
||||
A = Image.new("L", (1, 1), 1)
|
||||
|
|
Loading…
Reference in New Issue
Block a user