Changeset - 3c3a1c82fdfd
[Not reviewed]
default
0 1 0
Laman - 6 years ago 2018-12-04 15:45:19

fix: upscaling ImgView
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/gui/imgview.py
Show inline comments
 
@@ -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)
 

	
0 comments (0 inline, 0 general)