linedraw icon indicating copy to clipboard operation
linedraw copied to clipboard

update FLIP_LEFT_RIGHT definition to fix deprecation warning

Open richardmonette opened this issue 2 years ago • 0 comments

I noticed this warning which was occurring when using the script.

/Users/richardmonette/src/linedraw/linedraw.py:97: DeprecationWarning: FLIP_LEFT_RIGHT is deprecated and will be removed in Pillow 10 (2023-07-01). Use Transpose.FLIP_LEFT_RIGHT instead.
  IM2 = IM.rotate(-90,expand=True).transpose(Image.FLIP_LEFT_RIGHT)

Went ahead and made a quick PR to fix 🙂

richardmonette avatar Jan 03 '23 21:01 richardmonette