Source

bin / res

Full commit
#!/bin/bash
# Resize all images from current dir using Imagemagick.
# Usage: ./res resolution

for file in $@
do
    if [ -f "$file" ]; then
        convert -resize "$1" "$file" r"$file"
    fi
done