mbcharbonneau/UIImage-Categories — pull request #17 by qixotic (2013-12-12 08:39:37+00:00)
Title: crop resized images that get bigger beyond the bounds  parameter

This can happen specifically when using UIViewContentModeScaleAspectFill, and at least one of the dimensions is larger than the specified bounds. Since it's aspect fill, this center crops the resized image to the given bounds' dimensions.