diff --git a/src/main.py b/src/main.py index 6c89616..9e2757d 100644 --- a/src/main.py +++ b/src/main.py @@ -1392,7 +1392,7 @@ def OnFlipLeftRightToolButton(self, checked): self.InitTool() pixmap = self.getCurrentLayerLatestPixmap() pil = self.QPixmapToImage(pixmap) - pil = pil.transpose(Image.FLIP_LEFT_RIGHT) + pil = pil.transpose(Image.Transpose.FLIP_LEFT_RIGHT) updatedPixmap = self.ImageToQPixmap(pil) self.image_viewer.setImage(updatedPixmap, True, "Flip Left-Right", "Tool", None, None) self.FlipLeftRightToolButton.setChecked(False) @@ -1402,7 +1402,7 @@ def OnFlipTopBottomToolButton(self, checked): self.InitTool() pixmap = self.getCurrentLayerLatestPixmap() pil = self.QPixmapToImage(pixmap) - pil = pil.transpose(Image.FLIP_TOP_BOTTOM) + pil = pil.transpose(Image.Transpose.FLIP_TOP_BOTTOM) updatedPixmap = self.ImageToQPixmap(pil) self.image_viewer.setImage(updatedPixmap, True, "Flip Top-Bottom", "Tool", None, None) self.FlipTopBottomToolButton.setChecked(False) @@ -1992,4 +1992,4 @@ def main(): os.environ['QT_IMAGEIO_MAXALLOC'] = "1024" # QtGui.QImageReader.setAllocationLimit(0) - main() \ No newline at end of file + main()