From 8a38ca53d6e8303d73e78c6eb59da7d1c59772c5 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 9 Jan 2019 16:39:22 +0100 Subject: opt --- crop-thirds.py | 4 ++-- 1 file 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 = [] -- cgit v1.2.3-70-g09d2