Commit f3066378 authored by limm's avatar limm
Browse files

fix AttributeError: module 'PIL.Image' has no attribute 'LINEAR'

parent 7ced6cfa
...@@ -27,7 +27,9 @@ class ExtentTransform(Transform): ...@@ -27,7 +27,9 @@ class ExtentTransform(Transform):
See: https://pillow.readthedocs.io/en/latest/PIL.html#PIL.ImageTransform.ExtentTransform See: https://pillow.readthedocs.io/en/latest/PIL.html#PIL.ImageTransform.ExtentTransform
""" """
def __init__(self, src_rect, output_size, interp=Image.LINEAR, fill=0): # fix AttributeError: module 'PIL.Image' has no attribute 'LINEAR'
#def __init__(self, src_rect, output_size, interp=Image.LINEAR, fill=0):
def __init__(self, src_rect, output_size, interp=Image.BILINEAR, fill=0):
""" """
Args: Args:
src_rect (x0, y0, x1, y1): src coordinates src_rect (x0, y0, x1, y1): src coordinates
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment