Creating a thumbnail from UIImage using CGImageSourceCreateThumbnailAtIndex
问题 I want to use the function CGImageSourceCreateThumbnailAtIndex to create a thumbnail from an UIImage . All I have is the UIImage itself. The image is the snapshot on a UIView . Please, I don't want to use any other method to create the thumbnail, just the one using CGImageSourceCreateThumbnailAtIndex , because I want to compare its performance with the other methods I already have. Said that, this is the code I have so far. I have create a UIImage category with this code: - (UIImage *