2022-03-20 09:45:02 -03:00

14 lines
308 B
Bash
Executable File

#!/bin/bash
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
IMGDIR=$SCRIPTPATH/../docs/img
for file in $IMGDIR/*
do
res=$(identify $file | cut -d ' ' -f 3)
if [ "$res" != "1532x898" ]; then
echo "Converting $file"
convert $file -crop 1532x898+2+48 $file
fi
done