MGImageUtilities This is a demo project (for iPhone, but the code will work just fine on iPad too) showing two categories on UIImage, as described below. UIImage+ProportionalFill This category lets you resize an arbitrary image to fit into an arbitrary size, using one of four resizing methods: Scale: scales the image proportionally to fit entirely into the required size. Crop: scales the image pro