summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crop-thirds.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/crop-thirds.py b/crop-thirds.py
index 900f6f4..657062d 100644
--- a/crop-thirds.py
+++ b/crop-thirds.py
@@ -34,11 +34,11 @@ dst_width = int(src_width / opt.count)
dst_height = int(dst_width / opt.aspect)
crop_width = dst_width
-crop_height = int(dst_width / opt.aspect * crop_aspect)
+crop_height = int(dst_width / opt.aspect * opt.crop_aspect)
crop_size = (crop_width, crop_height,)
dst_size = (dst_width, dst_height,)
-y0 = opt.vertical_offset - dst_height / 2 - margin
+y0 = opt.vertical_offset - crop_height / 2 - margin
crops = []
paths = []