#!/bin/bash
for dir in tags/*;
do mkdir -p "$dir/thumbs" "$dir/lazy";
mogrify -path "$dir/thumbs" -resize x280\> -quality 90% "$dir/*.jpeg";
mogrify -path "$dir/lazy" -resize x90\> -quality 90% "$dir/*.jpeg";
done