From e134e7850407fd9dafd24b7af22d951bf62e5d70 Mon Sep 17 00:00:00 2001 From: Richard Monette Date: Tue, 3 Jan 2023 16:00:58 -0500 Subject: [PATCH] update FLIP_LEFT_RIGHT definition to fix deprecation warning --- linedraw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linedraw.py b/linedraw.py index 467c27d..ddc2fe4 100644 --- a/linedraw.py +++ b/linedraw.py @@ -94,7 +94,7 @@ def getcontours(IM,sc=2): print("generating contours...") IM = find_edges(IM) IM1 = IM.copy() - IM2 = IM.rotate(-90,expand=True).transpose(Image.FLIP_LEFT_RIGHT) + IM2 = IM.rotate(-90,expand=True).transpose(Image.Transpose.FLIP_LEFT_RIGHT) dots1 = getdots(IM1) contours1 = connectdots(dots1) dots2 = getdots(IM2)