Nyx0uf/NYXImagesKit — pull request #12 by randomsequence (2012-05-18 10:08:15+00:00)
Title: Use UIImage drawing to correctly handle rotating images where imageOrientation != UIImageOrientationUp

Images taken in portrait using the iPad's rear camera, then resized using [UIImage scaleToFitSize:] was producing an empty image. [UIImage drawInRect:] knows how to rotate images correctly when imageOrientation != UIImageOrientationUp, so let UIImage handle that. I made a test app using both methods, performance on the new iPad is identical when scaling 100 images.

Less code is better code :)