Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warning from Pillow #58

Closed
bodgerbarnett opened this issue Jul 1, 2022 · 1 comment
Closed

Deprecation warning from Pillow #58

bodgerbarnett opened this issue Jul 1, 2022 · 1 comment

Comments

@bodgerbarnett
Copy link

When I run my tests, I get the following warnings:-

../usr/local/lib/python3.8/site-packages/pilkit/processors/base.py:119
  /usr/local/lib/python3.8/site-packages/pilkit/processors/base.py:119: DeprecationWarning: FLIP_LEFT_RIGHT is deprecated and will be removed in Pillow 10 (2023-07-01). Use Transpose.FLIP_LEFT_RIGHT instead.
    FLIP_HORIZONTAL = Image.FLIP_LEFT_RIGHT

../usr/local/lib/python3.8/site-packages/pilkit/processors/base.py:120
  /usr/local/lib/python3.8/site-packages/pilkit/processors/base.py:120: DeprecationWarning: FLIP_TOP_BOTTOM is deprecated and will be removed in Pillow 10 (2023-07-01). Use Transpose.FLIP_TOP_BOTTOM instead.
    FLIP_VERTICAL = Image.FLIP_TOP_BOTTOM

../usr/local/lib/python3.8/site-packages/pilkit/processors/base.py:121
  /usr/local/lib/python3.8/site-packages/pilkit/processors/base.py:121: DeprecationWarning: ROTATE_90 is deprecated and will be removed in Pillow 10 (2023-07-01). Use Transpose.ROTATE_90 instead.
    ROTATE_90 = Image.ROTATE_90

../usr/local/lib/python3.8/site-packages/pilkit/processors/base.py:122
  /usr/local/lib/python3.8/site-packages/pilkit/processors/base.py:122: DeprecationWarning: ROTATE_180 is deprecated and will be removed in Pillow 10 (2023-07-01). Use Transpose.ROTATE_180 instead.
    ROTATE_180 = Image.ROTATE_180

../usr/local/lib/python3.8/site-packages/pilkit/processors/base.py:123
  /usr/local/lib/python3.8/site-packages/pilkit/processors/base.py:123: DeprecationWarning: ROTATE_270 is deprecated and will be removed in Pillow 10 (2023-07-01). Use Transpose.ROTATE_270 instead.
    ROTATE_270 = Image.ROTATE_270

Any ideas how to fix this?

jberends pushed a commit to jberends/pilkit that referenced this issue Jul 4, 2022
- according to https://pillow.readthedocs.io/en/stable/deprecations.html
- `Image.ADAPTIVE` -> `Image.Palette.ADAPTIVE`
- `Image.FLIP_HORIZONTAL` -> `Image.Transpose.FLIP_HORIZONTAL`
- etc. etc.
jberends pushed a commit to jberends/pilkit that referenced this issue Jul 4, 2022
@vstoykov
Copy link
Collaborator

Similar to #64 and fixed by #70

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants