summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)