Python Forum
[Tkinter] LANCZOS
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] LANCZOS
#2
You could try
try:
    from PIL.Image.Resampling import LANCZOS
except ModuleNotFoundError: # for pre 2023 versions of PIL
    import warnings
    with warnings.catch_warnings():
        from PIL.Image import LANCZOS
Reply


Messages In This Thread
LANCZOS - by DPaul - May-28-2022, 06:37 AM
RE: LANCZOS - by Gribouillis - May-28-2022, 07:16 AM
RE: LANCZOS - by DPaul - May-28-2022, 07:48 AM
RE: LANCZOS - by Gribouillis - May-28-2022, 09:19 AM
RE: LANCZOS - by DPaul - May-28-2022, 09:35 AM
RE: LANCZOS - by Gribouillis - May-28-2022, 11:58 AM
RE: LANCZOS - by DPaul - May-30-2022, 06:24 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020