Skip to content

Commit

Permalink
Another resizing fix
Browse files Browse the repository at this point in the history
Set max_wh to 128
Change the ratio to width/height
  • Loading branch information
DolphyWind committed Sep 30, 2022
1 parent d86c137 commit d6ef3af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,8 @@ def createSurfWordsMenu(self, currentWord:word.Word = None):
if currentWord.imageExists:
self.surfWords_ImageLabel = QtWidgets.QLabel()
pixmap = QtGui.QPixmap(currentWord.imagePath)
ratio = pixmap.height() / pixmap.width()
max_wh = 100
ratio = pixmap.width() / pixmap.height()
max_wh = 128

new_width, new_height = 0, 0
if ratio > 1:
Expand Down

0 comments on commit d6ef3af

Please sign in to comment.