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

从icloud下载的优化 #19

Open
DeadAndLife opened this issue Jun 15, 2021 · 4 comments
Open

从icloud下载的优化 #19

DeadAndLife opened this issue Jun 15, 2021 · 4 comments

Comments

@DeadAndLife
Copy link

我注意到使用系统imagepickercontroller时,当我点击一张图片,会有一个从iCloud下载的alert提示,同样的图片在RITL选中时没有任何页面反馈,但同样存在一定时间的主线程阻挡。这会造成用户感觉点不动的困扰。希望多加一个类似的alert提示。建议使用开发者弱网环境或类似模式进行调试以模拟从iCloud下载的延时过程

@RITL
Copy link
Owner

RITL commented Jun 16, 2021

@DeadAndLife 好的 我处理一下 谢谢😀

@DeadAndLife
Copy link
Author

我重新排查里一遍,主要耗时是我自己穿插了一步压缩图片的方法用来减少服务器存储开销。虽说主要耗时是这里,但是在使用获取data的系统方法时,偶尔会出现

[ImageManager] Media resource request failed to return valid data or url with error: Error Domain=PHPhotosErrorDomain Code=3164 "(null)"

而出现这种情况也依然会有延时。

@RITL
Copy link
Owner

RITL commented Sep 10, 2021

图片主要还是icloud的是不? 失败的那些是PNG 或者 JPG 还是有什么特殊格式的吗? @DeadAndLife

@DeadAndLife
Copy link
Author

基本可以认定是iCloud来的,毕竟系统picker的提示上给出的是从iCloud下载。具体失败的图片格式没注意。真说图片格式的话,偶尔会在后续保存图片是出现heic的提示,不过那一步并不影响什么,不属于重要bug。

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

No branches or pull requests

2 participants