summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjules@lens <julescarbon@gmail.com>2019-01-09 17:52:38 +0100
committerjules@lens <julescarbon@gmail.com>2019-01-09 17:52:38 +0100
commit9390c5b0abe8dc7522e15f0ea3d3df2efa97eddd (patch)
tree702e2eeef11b85e6e79e3cf54df16df976c5bd4e
parent08d9cb4994d1580d5f79a84534a1d01f3e14a531 (diff)
parent0a9314f54d2fd6e19b11f9aeb394a64e5c193054 (diff)
merge
-rw-r--r--crop-thirds.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/crop-thirds.py b/crop-thirds.py
index d9172b9..1aad4e9 100644
--- a/crop-thirds.py
+++ b/crop-thirds.py
@@ -54,7 +54,7 @@ if not opt.no_clobber:
for i in range(opt.count):
x = int(i / opt.count * dst_width) - x_margin
if x < 0:
- x += dst_width
+ x += src_width
crops.append((x, y0, x + crop_width + x_margin + x_margin, y0 + crop_height + y_margin + y_margin,))
path = os.path.join(out_path, chr(97 + i))
os.makedirs(path)