sahlberg / pop-fe

Python script to automate the process of fetching boxart and installing PS1 games (onto your PSP/VITA/PS2/PS3)
135 stars 13 forks source link

AttributeError: 'ImageDraw' object has no attribute 'textsize' #33

Closed DuckDantas closed 11 months ago

DuckDantas commented 11 months ago

001

sahlberg commented 11 months ago

Very strange. The ImageDraw object should definitely have an attribute called textsize. Maybe you have a weird version of PIL installed?

Anyway, there are two ways you can avoid this happening: 1, in pop-fe-psp, deactivate 'watermark in pic1'. The textsize is only used when trying to create the watermark (i.e. the game title and game-id) 2, I have added a try/except clause to this function so that IF this happens again it will just skip generating the watermark instead of failing.

Please try the build artefact in https://github.com/sahlberg/pop-fe/actions/runs/5772951172 It implements the fix to the exception mentioned in 2.