V5/Pillow 10 breaks old AntiAlias Cheetah code

44 views
Skip to first unread message

Chris Alemany

unread,
Aug 23, 2023, 2:41:29 PM8/23/23
to weewx...@googlegroups.com
Hi all,

Just a heads up for skin developers or those using the alltimeSeasons skin in v5. Cheetah died due to the use of a deprecated ANTIALIAS attribute. Pillow 10.0.0 has replaced it.

"Now you need to use PIL.Image.LANCZOS or PIL.Image.Resampling.LANCZOS."

This stackoverflow confirms and gives the new code needed.

I had this crop up in Glenn’s AllTimeSeasons skin.

As a quick fix I removed the reference to anti-alias in the skin.conf file and it seems to have allowed the image generation to continue.

Cheers
Chris

Tom Keffer

unread,
Aug 23, 2023, 2:56:26 PM8/23/23
to weewx...@googlegroups.com
This was fixed in commit 2482eeb, to appear in V5.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/9819621F-FC90-4B6A-A294-9C36A12798B5%40gmail.com.
Reply all
Reply to author
Forward
0 new messages