summaryrefslogtreecommitdiff
path: root/crop-thirds.py
diff options
context:
space:
mode:
Diffstat (limited to 'crop-thirds.py')
-rw-r--r--crop-thirds.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/crop-thirds.py b/crop-thirds.py
index 657062d..4a202d9 100644
--- a/crop-thirds.py
+++ b/crop-thirds.py
@@ -51,7 +51,7 @@ if not opt.no_clobber:
for i in range(opt.count):
x = int(i / opt.count * dst_width) - margin
if x < 0:
- x += dst_width
+ x += src_width
crops.append((x, y0, x + crop_width + margin + margin, y0 + crop_height + margin + margin,))
path = os.path.join(out_path, chr(97 + i))
os.makedirs(path)