PythonのPillowで以下を使用していた際、

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

以下のエラーが発生しました。

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

この対処法として、以下が参考になりました。

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

具体的には、以下のように書き直しました。

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

参考になりましたら幸いです。