From 6271862facb3b3c0a6f26d77c2c1d0b9059941db Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 18 Jan 2021 13:55:12 +0100 Subject: [PATCH] added scancroppers bash call --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index fe51c4d..bf5b202 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,5 @@ Collection of notes #### rotate all images using imagemagick ```mogrify -rotate 180 *.jpg``` ```mogrify``` overwrites existing images which is what makes it different from ```convert``` +#### cut poly-shape out of image, crop image to its boundaries, fill surrounding holes in certain color or transparent (for all jpgs in folder) +```for f in ./*.jpg; do convert "$f" \( -clone 0 -fill black -colorize 100 -fill white -draw "polygon 3276,2421 4945,2407 4956,4708 3287,4722" \) -alpha off -compose copy_opacity -composite -trim +repage 41050648/"$f"_left.jpg; done```