diff options
| -rw-r--r-- | crop-moving.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crop-moving.py b/crop-moving.py index 1f4e69a..653dc72 100644 --- a/crop-moving.py +++ b/crop-moving.py @@ -83,7 +83,8 @@ def build_thumbnail(i, fn): ii = i % (crop_width + x_margin + x_margin) crop = (ii, y0, ii + crop_width + x_margin + x_margin, y0 + crop_height + y_margin + y_margin) - image.crop(crops[n]).resize(dst_size).save(os.path.join(path, out_fn)) + path = paths[0] + image.crop(crop).resize(dst_size).save(os.path.join(path, out_fn)) chunksize = 3 with Pool(processes=cpu_count()) as pool: |
