Trying to set resize resampling filter to LANCZOS throws an error:
p.resize(probability=1.0, width=img_size, height=img_size, resample_filter="LANCZOS")
...
ValueError: The save_filter argument must be one of ['NEAREST', 'BICUBIC', 'ANTIALIAS', 'BILINEAR'].
Trying to set resize resampling filter to
LANCZOS
throws an error:Latest PIL supports much more than just those listed above. Would be great to support all of those: https://pillow.readthedocs.io/en/stable/handbook/concepts.html?highlight=lanczos#filters