|
|
@ -14,7 +14,7 @@ while True:
|
|
|
|
print("cropping even")
|
|
|
|
print("cropping even")
|
|
|
|
|
|
|
|
|
|
|
|
# left, up, right, bottom
|
|
|
|
# left, up, right, bottom
|
|
|
|
border = (0, 0, 165, 0)
|
|
|
|
border = (0, 0, 68, 0)
|
|
|
|
finalpage = ImageOps.crop(page, border)
|
|
|
|
finalpage = ImageOps.crop(page, border)
|
|
|
|
finalpage.save('cropped/page%i.jpg'%i)
|
|
|
|
finalpage.save('cropped/page%i.jpg'%i)
|
|
|
|
|
|
|
|
|
|
|
@ -23,7 +23,7 @@ while True:
|
|
|
|
print("cropping odd")
|
|
|
|
print("cropping odd")
|
|
|
|
|
|
|
|
|
|
|
|
# left, up, right, bottom
|
|
|
|
# left, up, right, bottom
|
|
|
|
border = (165, 0, 0, 0)
|
|
|
|
border = (68, 0, 0, 0)
|
|
|
|
finalpage = ImageOps.crop(page, border)
|
|
|
|
finalpage = ImageOps.crop(page, border)
|
|
|
|
finalpage.save('cropped/page%i.jpg'%i)
|
|
|
|
finalpage.save('cropped/page%i.jpg'%i)
|
|
|
|
|
|
|
|
|
|
|
|