When using the following in Python’s Pillow:

tfteoxxnwtt,si=tzxeIhm=a=g1ed4Froanwt..tterxutelteynpget(h"(Alraibaell,Unfiocnotd=ef.otnttf)",size=textsize)

The following error occurred.

AttributeError: ‘ImageDraw’ object has no attribute ’textsize’

The following was helpful as a solution.

https://stackoverflow.com/questions/77038132/python-pillow-pil-doesnt-recognize-the-attribute-textsize-of-the-object-imag

Specifically, I rewrote it as follows.

tftteoxxxnwhtts==i=zdteIremax=awtg.s1eti4Fezoxenttl.etnrguteht(ylpaeb(e"lA,rifaolntU=nfiocnotd)e.ttf",size=textsize)

I hope this is helpful.