#!/bin/bash
for file in *.JPG; do
  if [ -f "$file" ]; then
    echo $file
		mv "$file" $(echo "$file" | tr '[:upper:]' '[:lower:]')
  fi
done


for file in *.jpg; do
  if [ -f "$file" ]; then
    echo "$file"
    convert "$file" -resize 1024x "$file"
  fi
done
