summaryrefslogtreecommitdiff
path: root/helper_libs
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2024-01-06 00:05:16 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2024-01-06 00:05:16 +0530
commit1a26e0e5bdbe75690edf162a6a19022f0db52f8c (patch)
tree942cdcf4ff59d7813e47925a3a84606f6e94f68c /helper_libs
parentfd9f99d937b82bf95328b11112b85f74056af691 (diff)
bump pillow to 10.0.1
Diffstat (limited to 'helper_libs')
-rw-r--r--helper_libs/image_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/helper_libs/image_utils.py b/helper_libs/image_utils.py
index 501b6d0..349088b 100644
--- a/helper_libs/image_utils.py
+++ b/helper_libs/image_utils.py
@@ -65,7 +65,7 @@ class ImageText(object):
def get_text_size(self, font_filename, font_size, text):
font = ImageFont.truetype(font_filename, font_size)
- return font.getsize(text)
+ return font.getbbox(text)[2:4]
def write_text_box(self, coords, text, box_width, font_filename,
font_size=11, color=(0, 0, 0), place='left',