matthewwithanm / pilkit

Utilities and processors built for, and on top of PIL
BSD 3-Clause "New" or "Revised" License
196 stars 54 forks source link

Deprecation warning from Pillow #58

Closed bodgerbarnett closed 1 year ago

bodgerbarnett commented 2 years ago

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?

vstoykov commented 1 year ago

Similar to #64 and fixed by #70