diff --git a/batchprint.pyw b/batchprint.pyw index 9e38f0c..39fc2b4 100644 --- a/batchprint.pyw +++ b/batchprint.pyw @@ -180,10 +180,10 @@ class queueWindow(QMainWindow): bmp = PIL.Image.open(path) if bmp.size[1] > bmp.size[0]: if self.cPrinterSize[0] > self.cPrinterSize[1]: - bmp = bmp.rotate(90) + bmp = bmp.transpose(PIL.Image.ROTATE_90) elif bmp.size[0] > bmp.size[1]: if self.cPrinterSize[1] > self.cPrinterSize[0]: - bmp = bmp.rotate(90) + bmp = bmp.transpose(PIL.Image.ROTATE_90) self.cDC.StartDoc(path) self.cDC.StartPage()