Skip to content

Commit b52c1d3

Browse files
author
Shahen Hovhannisyan
committed
fix(Trimmer): Aspect Ratio
Changed Aspect Ratio to don't scale images with incorrect dimensions
1 parent bd04819 commit b52c1d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ios/RNVideoProcessing/RNTrimmerView/ICGVideoTrimmer/ICGVideoTrimmerView.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ - (void)addFrames
435435
CGImageRelease(halfWayImage);
436436
dispatch_async(dispatch_get_main_queue(), ^{
437437
UIImageView *imageView = (UIImageView *)[self.frameView viewWithTag:i];
438+
[imageView setContentMode:UIViewContentModeScaleAspectFill];
438439
[imageView setImage:videoScreen];
439440

440441
});

0 commit comments

Comments
 (0)