Skip to content

Commit 3bb6262

Browse files
committed
Fixed issue #5
1 parent 0bff9e5 commit 3bb6262

File tree

10 files changed

+77
-36
lines changed

10 files changed

+77
-36
lines changed

Pods/Pods.xcodeproj/xcuserdata/Erik.xcuserdatad/xcschemes/AFNetworking.xcscheme

Lines changed: 17 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Pods/Pods.xcodeproj/xcuserdata/Erik.xcuserdatad/xcschemes/Pods-Retini.xcscheme

Lines changed: 17 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Pods/Pods.xcodeproj/xcuserdata/Erik.xcuserdatad/xcschemes/Pods-RetiniTests.xcscheme

Lines changed: 17 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Pods/Pods.xcodeproj/xcuserdata/Erik.xcuserdatad/xcschemes/Pods.xcscheme

Lines changed: 17 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Retini.xcodeproj/project.pbxproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
038880A61B305F6300F8807F /* Project object */ = {
236236
isa = PBXProject;
237237
attributes = {
238-
LastUpgradeCheck = 0700;
238+
LastUpgradeCheck = 0820;
239239
ORGANIZATIONNAME = "ET-ID";
240240
TargetAttributes = {
241241
038880AD1B305F6300F8807F = {
@@ -375,8 +375,10 @@
375375
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
376376
CLANG_WARN_EMPTY_BODY = YES;
377377
CLANG_WARN_ENUM_CONVERSION = YES;
378+
CLANG_WARN_INFINITE_RECURSION = YES;
378379
CLANG_WARN_INT_CONVERSION = YES;
379380
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
381+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
380382
CLANG_WARN_UNREACHABLE_CODE = YES;
381383
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
382384
CODE_SIGN_IDENTITY = "-";
@@ -419,8 +421,10 @@
419421
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
420422
CLANG_WARN_EMPTY_BODY = YES;
421423
CLANG_WARN_ENUM_CONVERSION = YES;
424+
CLANG_WARN_INFINITE_RECURSION = YES;
422425
CLANG_WARN_INT_CONVERSION = YES;
423426
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
427+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
424428
CLANG_WARN_UNREACHABLE_CODE = YES;
425429
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
426430
CODE_SIGN_IDENTITY = "-";

Retini.xcodeproj/xcuserdata/Erik.xcuserdatad/xcschemes/Retini.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0700"
3+
LastUpgradeVersion = "0820"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
Binary file not shown.

Retini.zip

54 Bytes
Binary file not shown.

Retini/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<key>CFBundlePackageType</key>
3939
<string>APPL</string>
4040
<key>CFBundleShortVersionString</key>
41-
<string>1.0.10</string>
41+
<string>1.1.0</string>
4242
<key>CFBundleSignature</key>
4343
<string>????</string>
4444
<key>CFBundleVersion</key>

Retini/ResizeModel.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ - (BOOL)saveImage:(NSImage *)image toPath:(NSString *)path
161161
quality = [[NSUserDefaults standardUserDefaults] integerForKey:@"jpegQuality"] / 10;
162162
}
163163

164-
NSData *data = [bitmapRep representationUsingType:fileType properties:[NSDictionary dictionaryWithObject:[NSNumber numberWithFloat:quality] forKey:NSImageCompressionFactor]];
164+
NSDictionary *properties = quality == 1.0 ? @{} : @{NSImageCompressionFactor : @(quality)};
165+
NSData *data = [bitmapRep representationUsingType:fileType properties:properties];
165166

166167
if([[NSUserDefaults standardUserDefaults] integerForKey:@"pngOut"] == 1){
167168
if([data writeToFile:path atomically:YES]){

0 commit comments

Comments
 (0)