summaryrefslogtreecommitdiff
path: root/crop-thirds.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-01-09 18:24:49 +0100
committerJules Laplace <julescarbon@gmail.com>2019-01-09 18:24:49 +0100
commit6d1c7b2101a09451d091e4e3229a1c8a324dc9b1 (patch)
tree7e9ccb508b7601b341b1fd5ce0dd21a4273d4046 /crop-thirds.py
parent6af54a0605d0db3aaffa1cb059214bafc252854d (diff)
gotta crop
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 9ba2af6..ea6ba55 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 += src_width
+ x = 0
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)