This commit is contained in:
Lincoln Stein 2022-11-10 20:16:47 +00:00
parent 116415b3fc
commit 918c1589ef

View File

@ -1033,7 +1033,9 @@ class Generate:
return True
return False
def _check_for_erasure(self, image):
def _check_for_erasure(self, image:Image.Image)->bool:
if image.mode not in ('RGBA','RGB'):
return False
width, height = image.size
pixdata = image.load()
colored = 0