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

ios 打开拦截器读取本地的gif图片不会动 #52

Closed
shawn-tangsc opened this issue Feb 3, 2018 · 1 comment
Closed

ios 打开拦截器读取本地的gif图片不会动 #52

shawn-tangsc opened this issue Feb 3, 2018 · 1 comment
Assignees

Comments

@shawn-tangsc
Copy link
Member

简略的描述你的问题。

关闭拦截器调用本地的资源路径的gif图片,gif不会动。
打开拦截器调用调试服务器上的gif是可以动的。
代码如下:

 <image class="messageEgg" src="bmlocal://assets/index/egg@2x.gif" @click="annualBegin"></image>

环境信息

例子:

  • 开发平台:mac
  • node 版本:v7.2.0
  • npm 版本:5.6.0
  • 调试类型:模拟器/真机都是
  • 调试系统版本: ios 全版本 (android 没看)
  • 开发工具及其版本 xcode 9

尽可能写下你对问题的分析,你觉得可能是由于什么造成的。

例: gif的原理是图片叠加, ios中单单用imageWithContentsOfFile 应该只会读出gif的第一张
-->WXImgLoaderDefaultImpl

         NSString *imgPath = [NSString stringWithFormat:@"%@/%@%@",K_JS_PAGES_PATH,imgUrl.host,imgUrl.path];
            
            UIImage *img = [UIImage imageWithContentsOfFile:imgPath];
            NSError *error = nil;
            
 ....

建议针对.gif后缀的图片进行特殊处理。

什么场景下会复现这个问题,复现率是多少。

例:百分百复现,调用即复现。

@xiaohuapunk
Copy link
Contributor

xiaohuapunk commented Feb 7, 2018

已修复,更新ios依赖 eros install --ios

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

3 participants