An automatic way to crop images of different sizes

Can’t you just hardcode the keys for the different crops and then use Regenerate Thumbnails ?