Browse Source

res changed

master
Pedro Sá Couto 5 years ago
parent
commit
f66a18bfb9
  1. BIN
      .DS_Store
  2. 2
      burstpdf.py
  3. 4
      mirror_crop.py

BIN
.DS_Store

Binary file not shown.

2
burstpdf.py

@ -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'

4
mirror_crop.py

@ -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