From 1a26e0e5bdbe75690edf162a6a19022f0db52f8c Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sat, 6 Jan 2024 00:05:16 +0530 Subject: bump pillow to 10.0.1 --- helper_libs/image_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helper_libs') 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', -- cgit v1.2.3