summaryrefslogtreecommitdiff
path: root/crop-thirds.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-01-09 18:05:04 +0100
committerJules Laplace <julescarbon@gmail.com>2019-01-09 18:05:04 +0100
commit6af54a0605d0db3aaffa1cb059214bafc252854d (patch)
tree23a8aaf1215f1cba6167da53d8b81232f0f61978 /crop-thirds.py
parent0a9314f54d2fd6e19b11f9aeb394a64e5c193054 (diff)
urg
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 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: