From ac9d7608696b6034891fffc518113a64e00eae89 Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Tue, 16 May 2017 17:12:58 +0200 Subject: [PATCH] hand optimize for extra pixels --- screenless/bureau/photography/photography.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/screenless/bureau/photography/photography.py b/screenless/bureau/photography/photography.py index 94f2239..707e225 100644 --- a/screenless/bureau/photography/photography.py +++ b/screenless/bureau/photography/photography.py @@ -115,8 +115,8 @@ class Photography(Bureau): xsize, ysize = img.size #crop here to trim calibrated extra pixels - loffset = round(xsize * (float(23) / 257)) - roffset = round(xsize * (float(8) / 257)) + loffset = int(round(xsize * (float(23) / 257))) + roffset = xsize - int(round(xsize * (float(8) / 257))) box = (loffset, 0, roffset, ysize) img = img.crop(box)