Task: smoothing

def smoothen_pillow(i: Image, f: int = 4):
w, h = i.width, i.height
assert w % f == 0
assert h % f == 0
i = i.resize((w // f, h // f), resample=BILINEAR)
i = i.resize((w, h), resample=BILINEAR)
return i
Task: smoothing def smoothen_pillow ( i: Image, f: int = 4 ): w, h = i.width, i.height assert w % f == 0 assert h % f == 0 i = i.resize((w // f, h // f), resample=BILINEAR) i = i.resize((w, h), resample=BILINEAR) return i