Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

选择 LivePhoto,调用 asset.object 崩溃 #731

Closed
zhuscat opened this issue Sep 22, 2024 · 0 comments
Closed

选择 LivePhoto,调用 asset.object 崩溃 #731

zhuscat opened this issue Sep 22, 2024 · 0 comments

Comments

@zhuscat
Copy link

zhuscat commented Sep 22, 2024

代码片段:

                 for asset in result.photoAssets {
                     let urlResult: AssetURLResult = try await asset.object(
                        PhotoAsset.Compression(
                            imageTarget: PhotoAsset.Compression.ImageTarget(
                                size: CGSize(width: 750, height: 750),
                                mode: HX.ImageTargetMode.fit
                            ),
                            videoExportParameter: VideoExportParameter(
                                preset: ExportPreset.mediumQuality,
                                quality: 8
                            )
                        )
                     )
                     print(urlResult)
                     print(urlResult.url)
                 }

报错:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant