diff --git a/Pods/Pods.xcodeproj/xcuserdata/Erik.xcuserdatad/xcschemes/AFNetworking.xcscheme b/Pods/Pods.xcodeproj/xcuserdata/Erik.xcuserdatad/xcschemes/AFNetworking.xcscheme index 7855e20..7ba61c6 100644 --- a/Pods/Pods.xcodeproj/xcuserdata/Erik.xcuserdatad/xcschemes/AFNetworking.xcscheme +++ b/Pods/Pods.xcodeproj/xcuserdata/Erik.xcuserdatad/xcschemes/AFNetworking.xcscheme @@ -1,6 +1,6 @@ @@ -23,33 +23,42 @@ - - + shouldUseLaunchSchemeArgsEnv = "YES"> + + + + + + @@ -23,33 +23,42 @@ - - + shouldUseLaunchSchemeArgsEnv = "YES"> + + + + + + @@ -23,33 +23,42 @@ - - + shouldUseLaunchSchemeArgsEnv = "YES"> + + + + + + @@ -23,33 +23,42 @@ - - + shouldUseLaunchSchemeArgsEnv = "YES"> + + + + + + CFBundlePackageType APPL CFBundleShortVersionString - 1.0.10 + 1.1.0 CFBundleSignature ???? CFBundleVersion diff --git a/Retini/ResizeModel.m b/Retini/ResizeModel.m index f85dcd3..fd28e78 100644 --- a/Retini/ResizeModel.m +++ b/Retini/ResizeModel.m @@ -161,7 +161,8 @@ - (BOOL)saveImage:(NSImage *)image toPath:(NSString *)path quality = [[NSUserDefaults standardUserDefaults] integerForKey:@"jpegQuality"] / 10; } - NSData *data = [bitmapRep representationUsingType:fileType properties:[NSDictionary dictionaryWithObject:[NSNumber numberWithFloat:quality] forKey:NSImageCompressionFactor]]; + NSDictionary *properties = quality == 1.0 ? @{} : @{NSImageCompressionFactor : @(quality)}; + NSData *data = [bitmapRep representationUsingType:fileType properties:properties]; if([[NSUserDefaults standardUserDefaults] integerForKey:@"pngOut"] == 1){ if([data writeToFile:path atomically:YES]){