L0laapk3 / FactorioMaps

L0laapk3's FactorioMaps mod
https://mods.factorio.com/mod/L0laapk3_FactorioMaps
Other
118 stars 22 forks source link

fix: 'PIL.Image' has no attribute 'ANTIALIAS' #117

Closed JuanDaniel2510 closed 9 months ago

JuanDaniel2510 commented 11 months ago

It seems that PIL has finally deprecated 'Image.ANTIALIAS.' When attempting to render a new map, I encountered the following error: AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'.

This commit resolves the error by utilizing the correct resize option mentioned here: https://github.com/python-pillow/Pillow/issues/6200

IIPoliII commented 9 months ago

+1

L0laapk3 commented 9 months ago

Apologies, I forgot about this. Will try to get to it soon.

The reason I did not immediately accept this is because at the time of creating this, I was unhappy with the default PIL configuration as it made the maps blurry. So I wanted to verify that this is not a regression.