From ae16e95e42977deb01a99ebbda361ef8623df1e1 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Thu, 8 Sep 2016 11:38:10 -0700 Subject: [PATCH] leptonica: scale should be a tuple for consistency --- ocrmypdf/leptonica.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ocrmypdf/leptonica.py b/ocrmypdf/leptonica.py index 959a52d3..f17c57ec 100644 --- a/ocrmypdf/leptonica.py +++ b/ocrmypdf/leptonica.py @@ -231,10 +231,10 @@ class Pix: with LeptonicaErrorTrap(): return Pix(lept.pixDeskew(self._pix, reduction_factor)) - def scale(self, scalex, scaley): + def scale(self, scale_xy): "Returns the pix object rescaled according to the proportions given." with LeptonicaErrorTrap(): - return Pix(lept.pixScale(self._pix, scalex, scaley)) + return Pix(lept.pixScale(self._pix, scale_xy[0], scale_xy[1])) def rotate180(self): with LeptonicaErrorTrap():