question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DeprecationWarning: ANTIALIAS is deprecated

See original GitHub issue

scrapy/pipelines/images.py:163: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead. image.thumbnail(size, self._Image.ANTIALIAS)

This is deprecated since Pillow 9.1.0, released in April. We should check if Resampling.LANCZOS is already available in the earliest version we support (7.1.0 as far as I can see), and use it if it’s available there. If it was added later, I think we need to decide how to proceed.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
wRARcommented, Oct 20, 2022

Yes sorry I meant it is not available without warning.

But I said “use Resampling.LANCZOS if it’s available”.

I think we can just switch to the new name, it seems it has been available since Pillow 2.7.

It’s only about Image.LANCZOS which is deprecated in favor of Image.Resampling.LANCZOS as well.

0reactions
iamkaushalcommented, Oct 21, 2022

Sure, will do it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Help! Pillow Deprecation Warning : r/learnpython - Reddit
DeprecationWarning : ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
Read more >
Deprecations and removals - Pillow (PIL Fork) 9.3.0 ...
This page lists Pillow features that are deprecated, or have been removed in past major releases, and gives the alternatives to use instead....
Read more >
antialias is deprecated and will be removed in pillow 10 (2023 ...
DeprecationWarning : ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead. Open side panel.
Read more >
Pillow/deprecations.rst at main - GitHub
This page lists Pillow features that are deprecated, or have been removed in past major releases, and gives the alternatives to use instead....
Read more >
How do I resize an image using PIL and maintain its aspect ...
resize that instead returns the resized image without changing the original one. EDIT: Image.ANTIALIAS raises a deprecation warning, and will be removed in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found