Skip to content

Commit 4b3bc68

Browse files
authored
fix: No matching function for call to 'transformImage' (#342) (#350)
Fix a build error if using Xcode < v14.x
1 parent 254e4df commit 4b3bc68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/ImageResizer.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ - (void)createResizedImage:(NSString *)uri width:(double)width height:(double)he
5050

5151
UIImage *image;
5252
image = [UIImage imageWithData:imageData];
53-
NSDictionary * response = transformImage(image, uri, [rotation integerValue], newSize, fullPath, format, (int)quality, keepMeta, @{@"mode": mode, @"onlyScaleDown": [NSNumber numberWithBool:onlyScaleDown]});
53+
NSDictionary * response = transformImage(image, uri, [rotation integerValue], newSize, fullPath, format, (int)quality, [keepMeta boolValue], @{@"mode": mode, @"onlyScaleDown": [NSNumber numberWithBool:onlyScaleDown]});
5454
resolve(response);
5555
} @catch (NSException *exception) {
5656
RCTLogError([NSString stringWithFormat:@"Code : %@ / Message : %@", exception.name, exception.reason]);
@@ -234,7 +234,7 @@ float getScaleForProportionalResize(CGSize theSize, CGSize intoSize, bool onlySc
234234
// using this instead of ImageHelpers allows us to consider
235235
// rotation variations
236236
CGSize newSize;
237-
237+
238238
if ([mode isEqualToString:@"stretch"]) {
239239
// Distort aspect ratio
240240
int width = toSize.width;

0 commit comments

Comments
 (0)