Skip to content

Commit

Permalink
update representation options
Browse files Browse the repository at this point in the history
  • Loading branch information
lilthree committed Feb 23, 2019
1 parent dc842f4 commit 6380cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pod/Classes/Utils.m
Expand Up @@ -362,7 +362,7 @@ + (BOOL)writeCIImage:(CIImage *)ciImage toPath:(NSString*)filePath {
NSError *error = nil;
CIContext *context = [[CIContext alloc] init];
NSURL *url = [[NSURL alloc] initFileURLWithPath:filePath];
return [context writeJPEGRepresentationOfImage:ciImage toURL:url colorSpace:CGColorSpaceCreateWithName(kCGColorSpaceSRGB) options:@{(CIImageRepresentationOption)kCGImageDestinationLossyCompressionQuality : @(1.0)} error:&error];
return [context writeJPEGRepresentationOfImage:ciImage toURL:url colorSpace:ciImage.colorSpace options:@{(CIImageRepresentationOption)kCGImageDestinationLossyCompressionQuality : @(0.8)} error:&error];
}

+ (BOOL)fileExistsAtPath:(NSString *)path
Expand Down

0 comments on commit 6380cee

Please sign in to comment.