diff --git a/main.py b/main.py index e987728..b29e477 100644 --- a/main.py +++ b/main.py @@ -87,7 +87,7 @@ class MangaReader: #Modified above code to maintain height and scale width hpercent = (hsize / float(im.size[1])) - widthsize = init((float(im.size[0] * float(hpercent)))) + widthsize = int((float(im.size[0] * float(hpercent)))) im = im.resize((widthsize, hsize), Image.ANTIALIAS) #convert to tkImage and update the on screen image.