diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-01-09 18:05:04 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-01-09 18:05:04 +0100 |
| commit | 6af54a0605d0db3aaffa1cb059214bafc252854d (patch) | |
| tree | 23a8aaf1215f1cba6167da53d8b81232f0f61978 | |
| parent | 0a9314f54d2fd6e19b11f9aeb394a64e5c193054 (diff) | |
urg
| -rw-r--r-- | crop-thirds.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crop-thirds.py b/crop-thirds.py index 4a202d9..9ba2af6 100644 --- a/crop-thirds.py +++ b/crop-thirds.py @@ -78,7 +78,7 @@ def build_thumbnail(i, fn): canvas.paste(image, (src_width, 0)) for n, path in enumerate(paths): - image.crop(crops[n]).resize(dst_size).save(os.path.join(path, out_fn)) + canvas.crop(crops[n]).resize(dst_size).save(os.path.join(path, out_fn)) chunksize = 3 with Pool(processes=cpu_count()) as pool: |
