longitachi / ZLPhotoBrowser

Wechat-like image picker. Support select photos, videos, gif and livePhoto. Support edit image and crop video. 微信样式的图片选择器,支持预览/相册内拍照及录视频、拖拽/滑动选择,编辑图片/视频,支持多语言国际化等功能;
MIT License
4.72k stars 953 forks source link

选择GIF图崩溃 #804

Closed dianluyuanli closed 1 year ago

dianluyuanli commented 1 year ago

Issue Description

选择GIF崩溃

Description and Steps

选择大帧数gif图会卡主崩溃 我用的gif是1000帧的

Please fill in the detailed description of the issue (full output of any stack trace, compiler error, ...) and the steps to reproduce the issue.

选择大帧数GIF就会导致内存飙升,应该是超过50帧GIF加载就会这样,需要在加载的时候处理一下

Info

ZLPhotoBrowser version: e.g. 4.3.9 Device: e.g. iPhone X Device version: e.g. iOS 14.0 Xcode version: e.g. Xcode 12.0

Configuration code of ZLPhotoConfiguration

1 Paste your code here. 1

dianluyuanli commented 1 year ago

可以参考TZImage那里面50帧做一下处理

longitachi commented 1 year ago

这两天抽空看下。能上传一张200帧或者更大的GIF图吗?

dianluyuanli commented 1 year ago

这两天抽空看下。能上传一张200帧或者更大的GIF图吗? 网盘下载一下这个GIF 链接: https://pan.baidu.com/s/1pvdso0FYyKRssFNVhaCz6w?pwd=1234 提取码: 1234 复制这段内容后打开百度网盘手机App,操作更方便哦

longitachi commented 1 year ago

https://github.com/longitachi/ZLPhotoBrowser/commit/f39ecb0203f4382786861e8af69fc296d0f5152f 已优化