# HG changeset patch # User Laman # Date 2018-12-04 15:45:19 # Node ID 3c3a1c82fdfdb34326aedbb4eb7d99a6aaf80745 # Parent 9ab11204b0f971651c394dfad61a59164b84eed8 fix: upscaling ImgView diff --git a/src/gui/imgview.py b/src/gui/imgview.py --- a/src/gui/imgview.py +++ b/src/gui/imgview.py @@ -29,8 +29,7 @@ class ImgView(ResizableCanvas): self.delete("all") if self._img: - img=self._img.copy() - img.thumbnail((int(self._width),int(self._height))) + img=self._img.resize((int(self._width),int(self._height))) self._tkImg=ImageTk.PhotoImage(img) # just to save the image from garbage collector self.create_image(self._width//2, self._height//2, anchor="center", image=self._tkImg)