res changed

master
Pedro Sá Couto 5 years ago
parent 054ab8f334
commit f66a18bfb9

BIN
.DS_Store vendored

Binary file not shown.

@ -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")
# left, up, right, bottom
border = (165, 0, 0, 0)
border = (68, 0, 0, 0)
finalpage = ImageOps.crop(page, border)
finalpage.save('cropped/page%i.jpg'%i)

Loading…
Cancel
Save