summaryrefslogtreecommitdiff
path: root/crop_frames.py
diff options
context:
space:
mode:
authorjules <jules@asdf.us>2018-11-23 13:41:03 +0100
committerjules <jules@asdf.us>2018-11-23 13:41:03 +0100
commit795f81ad95888631420e870dfec6aaf7425cc598 (patch)
tree61655712fe56b6fb1767257b0fe0ffaca08cc534 /crop_frames.py
parent1a48ac95160230049baf8e2e2de3305566ef68e8 (diff)
scripts
Diffstat (limited to 'crop_frames.py')
-rw-r--r--crop_frames.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/crop_frames.py b/crop_frames.py
index 8314816..516ad37 100644
--- a/crop_frames.py
+++ b/crop_frames.py
@@ -36,7 +36,7 @@ def crop_dir():
w = min(args.step, width - x)
h = min(args.step, height - y)
crop_dir = "{}/crop_{}_{}_{}_{}".format(args.dir, x, y, w, h)
- print("{}x{} {}x{}".format(x, y, w, h))
+ #print("{}x{} {}x{}".format(x, y, w, h))
crop = img.crop((x, y, x + w, y + h))
crop.save("{}/{}".format(crop_dir, fn))
@@ -108,4 +108,4 @@ if __name__ == "__main__":
if args.cmd == 'crop':
crop_dir()
else:
- merge_dir() \ No newline at end of file
+ merge_dir()