AVAssetImageGenerator provides images rotated

前端 未结 3 1796
名媛妹妹
名媛妹妹 2020-12-08 06:29

When obtaining a UIImage of a video via AVAssetImageGenerator, I\'m getting back images rotated (well, technically they\'re not) when the video is shot in portrait orientati

3条回答
  •  萌比男神i
    2020-12-08 07:06

    The easiest way is to just set the appliesPreferredTrackTransform property on the image generator to YES, then it should automatically do the transformation for you.

提交回复
热议问题