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

Taro.getImageInfo({src:'xxx.png'}),找不到资源 #5372

Closed
rednumber16 opened this issue Jan 19, 2020 · 5 comments
Closed

Taro.getImageInfo({src:'xxx.png'}),找不到资源 #5372

rednumber16 opened this issue Jan 19, 2020 · 5 comments
Assignees

Comments

@rednumber16
Copy link

问题描述

微信端图片转换为base64,导致无法使用Taro.getImageInfo({src:'xxx.png'}),报错找不到资源,修改配置无效。

复现步骤

1.调用Taro.getImageInfo({src:'xxx.png'})

修改配置无效
url: { enable: false, config: { limit: 0 // 设定转换尺寸上限 } },

期望行为

期望图片可以不转base64

报错信息

系统信息

补充信息

@taro-bot
Copy link

taro-bot bot commented Jan 19, 2020

CC @Chen-jj

@taro-bot
Copy link

taro-bot bot commented Jan 19, 2020

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@hisanshao
Copy link
Contributor

2.x版本 这样配置有效的
image

@rednumber16
Copy link
Author

@hisanshao 谢谢,已解决。

@zmm2tysu
Copy link

zmm2tysu commented Sep 6, 2021

@rednumber16 taro3好像这么配置没有用了

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

4 participants