LoganMeitz / votefinder

GNU General Public License v3.0
2 stars 2 forks source link

Pillow 10.0.0 removes functions used to draw votecount images #25

Closed rjmagley closed 10 months ago

rjmagley commented 12 months ago

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 an xpos parameter that is never used, for example.

rjmagley commented 10 months ago

This appears to be handled now in the pillow-10-update branch - it tests well locally and on the test server.