tools (image): fix bad method name used when fix_orientation is set in resize
This commit is contained in:
parent
33cef53495
commit
bd779e8ddd
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ def _resize_blocking(image_path, new_size, dest, fix_orientation):
|
|||
im = Image.open(im_path)
|
||||
resized = im.resize(new_size, Image.LANCZOS)
|
||||
if fix_orientation:
|
||||
resized = ImageOps.fix_orientation(resized)
|
||||
resized = ImageOps.exif_transpose(resized)
|
||||
|
||||
if dest is None:
|
||||
dest = tempfile.NamedTemporaryFile(suffix=im_path.suffix, delete=False)
|
||||
|
|
|
|||
Loading…
Reference in a new issue