AFCoreImageResponseSerializer
automatically applies a series of Core Image filters to response images.
#import <CoreImage/CoreImage.h>
#import "AFCoreImageResponseSerializer.h"
#import "UIImageView+AFNetworking"
CIFilter *blackAndWhiteFilter = [CIFilter filterWithName:@"CIColorControls" keysAndValues:@"inputBrightness", @(0.0), @"inputContrast", @(1.1), @"inputSaturation", @(0.0), nil];
self.imageView.imageResponseSerializer = [AFCoreImageResponseSerializer serializerWithFilters:@[blackAndWhiteFilter]];
[self.imageView setImageWithURL:[NSURL URLWithString:@"http://example.com/image.png"]];
Mattt Thompson
AFCoreImageResponseSerializer is available under the MIT license. See the LICENSE file for more info.