From 6af54a0605d0db3aaffa1cb059214bafc252854d Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 9 Jan 2019 18:05:04 +0100 Subject: urg --- crop-thirds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crop-thirds.py') 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: -- cgit v1.2.3-70-g09d2