From 28087b312cd5a6fb7f72fc9dc731100aae80eae7 Mon Sep 17 00:00:00 2001 From: lourenco <> Date: Thu, 29 Jun 2023 12:05:16 +0100 Subject: [PATCH] Initial commit --- strip_and_resize.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 strip_and_resize.sh diff --git a/strip_and_resize.sh b/strip_and_resize.sh new file mode 100755 index 0000000..89dab89 --- /dev/null +++ b/strip_and_resize.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Very simple script to resize and strip EXIT for an image (or several images) +# Usage: +# ./scrit_and_resize.sh +# can be a single file, several files, and so on +# It can also be configured by editing the $resolution variable + +list=($@) +resolution="1920x1080" + +for i in ${list[@]}; do + /usr/bin/vendor_perl/exiftool -all= $i + convert $i -resize $resolution $i +done