The current votecount image generation leans fairly hard on methods like ImageDraw.textsize(). The methods removed in 10.0.0 have replacements, but it's not just a 1:1 substitution. This would be a good time to just rewrite some of the image generation code entirely, as the way some of it is written is a bit unintuitive - many of the functions have an xpos parameter that is never used, for example.
https://pillow.readthedocs.io/en/stable/deprecations.html
The current votecount image generation leans fairly hard on methods like
ImageDraw.textsize()
. The methods removed in 10.0.0 have replacements, but it's not just a 1:1 substitution. This would be a good time to just rewrite some of the image generation code entirely, as the way some of it is written is a bit unintuitive - many of the functions have anxpos
parameter that is never used, for example.