diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2024-01-06 00:05:16 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2024-01-06 00:05:16 +0530 |
commit | 9d2a9a0dde75fff11c59229229fd60789cbf63b5 (patch) | |
tree | 6b9a75b78b490baf46fd29d9463d9e884cbe66bd /helper_libs | |
parent | cbc34865e5a3b5c7193c118c55c8087585ff53c3 (diff) |
bump pillow to 10.0.1
Diffstat (limited to 'helper_libs')
-rw-r--r-- | helper_libs/image_utils.py | 2 |
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', |