#!/bin/bash

FOLDER=Downloads/imagepack
for IMG in $(ls $FOLDER | grep -v ".resize.jpg$")
do
    echo $IMG
    IMG_RESIZED=$(echo $IMG | sed 's#.jpg#.resized.jpg#g')
    convert -resize 25% $FOLDER/$IMG $FOLDER/$IMG_RESIZED
done
