@ -6,7 +6,7 @@ import time
#DECLARE CONSTANTS
PDF_PATH = ("scans/out.pdf")
DPI = 200
DPI = 72
FIRST_PAGE = None
LAST_PAGE = None
FORMAT = 'jpg'
@ -14,7 +14,7 @@ while True:
print("cropping even")
# left, up, right, bottom
border = (0, 0, 165, 0)
border = (0, 0, 68, 0)
finalpage = ImageOps.crop(page, border)
finalpage.save('cropped/page%i.jpg'%i)
@ -23,7 +23,7 @@ while True:
print("cropping odd")
border = (165, 0, 0, 0)
border = (68, 0, 0, 0)