This commit is contained in:
Lincoln Stein 2022-11-10 20:16:47 +00:00
parent 8aa94d5774
commit 832f183320

View File

@ -1042,7 +1042,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