react-native-image-crop-picker
react-native-image-crop-picker copied to clipboard
fix: inverted video dimensions
trafficstars
Problem
Width and height need to be inverted based on preferredTransform.
Approach
- Added new method for checking if video is recorded in portrait mode
- Revert width and height based on orientation
Reference
This fixes #1769.
Has this been looked into anymore? The problem is super annoying 😢 @ivpusic
@ivpusic could you review this PR?
@gregbrinker @ddikodroid Can you try these changes and verify it is working properly?
@matinzd I actually had to flip it lol. Aside from that, it works properly. This is on iPhone 13 Pro Max
withWidth:isPortrait ? [NSNumber numberWithFloat:track.naturalSize.height] : [NSNumber numberWithFloat:track.naturalSize.width]
withHeight:isPortrait ? [NSNumber numberWithFloat:track.naturalSize.width] : [NSNumber numberWithFloat:track.naturalSize.height]