diff options
| author | jules@lens <julescarbon@gmail.com> | 2019-01-09 18:05:11 +0100 |
|---|---|---|
| committer | jules@lens <julescarbon@gmail.com> | 2019-01-09 18:05:11 +0100 |
| commit | ce02763fd08cb38f1f86afc2ce756b12ad803410 (patch) | |
| tree | 5ab87ab4e27f88767d48384da5d40c099d34fc9a /crop-thirds.py | |
| parent | c232881c7a6b5b6be32f44536497067a8bda5835 (diff) | |
| parent | 6af54a0605d0db3aaffa1cb059214bafc252854d (diff) | |
Merge branch 'master' of asdf.us:pix2pixhd
Diffstat (limited to 'crop-thirds.py')
| -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 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: |
