Skip to content

Commit

Permalink
fix(RNVideoTrimmer): Set size
Browse files Browse the repository at this point in the history
Added sizes to preview images
  • Loading branch information
shahen94 committed Nov 29, 2016
1 parent 047e798 commit 8d952a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ios/RNVideoProcessing/RNVideoTrimmer/RNVideoTrimmer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class RNVideoTrimmer: NSObject {
let asset = AVAsset(url: sourceURL)

let imageGenerator = AVAssetImageGenerator(asset: asset)
imageGenerator.maximumSize = CGSize(width: 1080, height: 1080)
imageGenerator.appliesPreferredTrackTransform = true
var second = atTime
if atTime > Float(asset.duration.seconds) || atTime < 0 {
Expand Down

0 comments on commit 8d952a2

Please sign in to comment.