mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 01:38:18 +00:00
correct small edge case in rotation option
This commit is contained in:
parent
2c87364016
commit
74cb9f3a32
@ -308,8 +308,8 @@ RCT_EXPORT_METHOD(stopCapture) {
|
|||||||
CGImageRef cgImage;
|
CGImageRef cgImage;
|
||||||
cgImage = CGImageSourceCreateImageAtIndex(source, 0, NULL);
|
cgImage = CGImageSourceCreateImageAtIndex(source, 0, NULL);
|
||||||
|
|
||||||
float rotation = [[options objectForKey:@"rotation"] floatValue];
|
if ([options objectForKey:@"rotation"]) {
|
||||||
if (rotation) {
|
float rotation = [[options objectForKey:@"rotation"] floatValue];
|
||||||
cgImage = [self CGImageRotatedByAngle:cgImage angle:rotation];
|
cgImage = [self CGImageRotatedByAngle:cgImage angle:rotation];
|
||||||
} else {
|
} else {
|
||||||
// Get metadata orientation
|
// Get metadata orientation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user