UIImage+ImageCompress is a UIImage category that compress a local or remote UIImage
Install with cocoapods
pod 'UIImage+ImageCompress'
UIImage *imageToCompress = [UIImage imageNamed:@"theJoker.jpg"];
UIImage *compressedImage = [UIImage compressImage:imageToCompress
compressRatio:0.9f];
Abraham Kuri