diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-01-09 16:39:22 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-01-09 16:39:22 +0100 |
| commit | 8a38ca53d6e8303d73e78c6eb59da7d1c59772c5 (patch) | |
| tree | e76501282c36a0b5a1ef17c91cdee8756fdee9bb /crop-thirds.py | |
| parent | be592bc9662679f40ac2c426a69aa9d204deafd9 (diff) | |
opt
Diffstat (limited to 'crop-thirds.py')
| -rw-r--r-- | crop-thirds.py | 4 |
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 = [] |
