hand optimize for extra pixels

workspace
Brendan Howell 8 years ago
parent 38d98edc4e
commit ac9d760869

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

Loading…
Cancel
Save