From ed54f9dbb9b13dbaacb1d68fa448d337be17f92d Mon Sep 17 00:00:00 2001 From: Domhnall Morrissey Date: Mon, 24 Jun 2024 20:30:44 +0100 Subject: [PATCH] V0.58.0 --- README.md | 4 ++++ src/main.py | 2 +- src/view/tkexplorer_icons.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index db13e1b..ce815dd 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,8 @@ Note the app creates 2 files, "tk_path_finder_config.json" and "notes.db" (sqlit [PyPDF2](https://pypi.org/project/PyPDF2/) (V3.0 or later required) +[Pillow] (V10.0.0 or later required) + pip install natsort pip install openpyxl @@ -72,6 +74,8 @@ pip install ttkbootstrap pip install PyPDF2 +pip install pillow + ## Preview ![Main](images/main_image.PNG) diff --git a/src/main.py b/src/main.py index 3ddae8e..3b91582 100644 --- a/src/main.py +++ b/src/main.py @@ -35,7 +35,7 @@ def __init__(self, parent, *args, **kwargs): self.controller = controller.Controller(root, parent, self) # ----------------- VERSION ----------------------- - self.version = "0.57.1" + self.version = "0.58.0" # ----------------- WEEK NUMBER ----------------------- year, week_num, day_of_week = datetime.date.today().isocalendar() diff --git a/src/view/tkexplorer_icons.py b/src/view/tkexplorer_icons.py index 72afc71..1a870e2 100644 --- a/src/view/tkexplorer_icons.py +++ b/src/view/tkexplorer_icons.py @@ -161,7 +161,7 @@ def decode_base64_image(size, data): buf = io.BytesIO(msg) i = Image.open(buf) - i.thumbnail(size, Image.ANTIALIAS) + i.thumbnail(size, Image.Resampling.LANCZOS) # adding transparent padding before text new_image = Image.new('RGBA', (size[0]+5, size[1]), (0, 0, 0, 0))