Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 20 lines (16 sloc) 279 Bytes
#!/bin/bash
size=1280x720
offset=530+200;
dst=cropped
if [ ! -d ${dst}/ ]; then
mkdir ${dst}/
fi
for f in *.jpg; do
echo -n ${f}..
if [ -e ${dst}/${f} ]; then
echo already exists
else
convert ${f} -crop ${size}+${offset} -repage ${size} ${dst}/${f}
echo ok
fi
done