wenweiwei 3 lat temu
rodzic
commit
9dccea8433
1 zmienionych plików z 3 dodań i 4 usunięć
  1. 3 4
      BFRecordScreenKit/Classes/BFRecordExport.swift

+ 3 - 4
BFRecordScreenKit/Classes/BFRecordExport.swift

@@ -349,17 +349,16 @@ public class BFRecordExport {
         if voiceCount > 0 || videoStickers.count > 1 {
             let (audioMix, composition) = mergeAudio(videoStickers: videoStickers, audios: voiceList, synthesisAll: synthesisAll)
 
+            let outputSize: CGSize = CGSize(width: 1080, height: Int(1080 * CGFloat(UIScreen.main.bounds.size.height / UIScreen.main.bounds.size.width)))
+            BFLog(message: "输出视频大小:\(outputSize)")
             var filters: [PQBaseFilter] = Array()
             for sticker in videoStickers {
                 if sticker.type == StickerType.IMAGE.rawValue {
-                    filters.append(PQImageFilter(sticker: sticker))
+                    filters.append(PQImageFilter(sticker: sticker,showUISize: outputSize))
                 } else if sticker.type == StickerType.VIDEO.rawValue {
                     filters.append(PQMovieFilter(movieSticker: sticker))
                 }
             }
-            let outputSize: CGSize = CGSize(width: 1080, height: Int(1080 * CGFloat(UIScreen.main.bounds.size.height / UIScreen.main.bounds.size.width)))
-            BFLog(message: "输出视频大小:\(outputSize)")
-
             // add by ak 有字幕数据 & 显示字幕开关打开 添加字幕filter
             if titleStickers.count > 0, titleStickers.first?.setting.subtitleIsShow ?? true {
                 filters.append(PQSubTitleFilter(st: titleStickers, inputSize: outputSize))