diff --git a/trackma/ui/gtk/imagebox.py b/trackma/ui/gtk/imagebox.py index 268e0962..a5f5e1a3 100644 --- a/trackma/ui/gtk/imagebox.py +++ b/trackma/ui/gtk/imagebox.py @@ -58,7 +58,7 @@ def _download_file(self): def _save_image(self, img_bytes): if imaging_available: image = Image.open(img_bytes) - image.thumbnail((self._width, self._height), Image.ANTIALIAS) + image.thumbnail((self._width, self._height), Image.BICUBIC) image.convert("RGB").save(self._filename) else: with open(self._filename, 'wb') as img_file: diff --git a/trackma/ui/qt/workers.py b/trackma/ui/qt/workers.py index bb27f6b3..2b29724e 100644 --- a/trackma/ui/qt/workers.py +++ b/trackma/ui/qt/workers.py @@ -55,7 +55,7 @@ def run(self): if self.size: if "imaging_available" in os.environ: im = Image.open(img_file) - im.thumbnail((self.size[0], self.size[1]), Image.ANTIALIAS) + im.thumbnail((self.size[0], self.size[1]), Image.BICUBIC) im.convert("RGB").save(self.local) else: with open(self.local, 'wb') as f: