Skip to content

Commit

Permalink
Release 1.6.2 (#110)
Browse files Browse the repository at this point in the history
* Release 1.6.2

* fix: Use Image.LANCZOS with Pillow resize (#109)

Fix #108
Image.LANCZOS has been introduced in Pillow 2.7.0 https://pillow.readthedocs.io/en/stable/releasenotes/2.7.0.html#antialias-renamed-to-lanczos
and removed in 10.0.0

---------

Co-authored-by: kumy <kumy@users.noreply.github.com>
  • Loading branch information
jessezach and kumy authored Aug 4, 2023
1 parent fc6b66e commit f35fc68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions RobotEyes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def _create_empty_folder(self):
def _resize(self, *args):
for arg in args:
img = Image.open(arg)
img = img.resize((1024, 700), Image.ANTIALIAS)
img = img.resize((1024, 700), Image.LANCZOS)
img.save(arg)

def _fix_base_image_size(self, path, image_name):
Expand All @@ -209,7 +209,7 @@ def _fix_base_image_size(self, path, image_name):
im = Image.open(base_image)
b_width, b_height = im.size
if width != b_width or height != b_height:
im = im.resize((width, height), Image.ANTIALIAS)
im = im.resize((width, height), Image.LANCZOS)
im.save(base_image)

def _delete_report_if_old(self, path):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
import os

version = '1.6.1'
version = '1.6.2'

setup(name='robotframework-eyes',
version=version,
Expand Down

0 comments on commit f35fc68

Please sign in to comment.