Yeah, I think the original title didn't specify shrink, so yes I glanced, looked at the headache, and posted.
But, even there its still probably easier to just delete the image, and redownload the apps. 30 seconds later with no template changes required you're back in business. But it is kinda cool to know how to do a shrink via the command line.