#!/bin/bash

# max height
WIDTH=1200

# max width
HEIGHT=1200

list=$(find . -name "*.jpg")
for img in $list; do
# remova sed se nao for pra converter pra jpbag
#bash image2.sh $(echo "$img")
convert $img -resize $WIDTHx$HEIGHT\> -quality 80 -strip $(echo "$img")
done
