summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjules@lens <julescarbon@gmail.com>2019-01-09 18:05:11 +0100
committerjules@lens <julescarbon@gmail.com>2019-01-09 18:05:11 +0100
commitce02763fd08cb38f1f86afc2ce756b12ad803410 (patch)
tree5ab87ab4e27f88767d48384da5d40c099d34fc9a
parentc232881c7a6b5b6be32f44536497067a8bda5835 (diff)
parent6af54a0605d0db3aaffa1cb059214bafc252854d (diff)
Merge branch 'master' of asdf.us:pix2pixhd
-rw-r--r--crop-thirds.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/crop-thirds.py b/crop-thirds.py
index 1aad4e9..ee624bf 100644
--- a/crop-thirds.py
+++ b/crop-thirds.py
@@ -81,7 +81,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: