summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-01-09 17:51:39 +0100
committerJules Laplace <julescarbon@gmail.com>2019-01-09 17:51:39 +0100
commit0a9314f54d2fd6e19b11f9aeb394a64e5c193054 (patch)
treecbe98bed3227a9fced1daa32e53335d5293fbfda
parent8a38ca53d6e8303d73e78c6eb59da7d1c59772c5 (diff)
src_width
-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)