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 浏览器 base64不能正常显示 #26

Open
kevin0713 opened this issue Sep 21, 2019 · 5 comments
Open

ios 浏览器 base64不能正常显示 #26

kevin0713 opened this issue Sep 21, 2019 · 5 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@kevin0713
Copy link

使用npm run build 打包出来的base64图片在ios下面显示不出,Android是正常的。请问如何解决?

@BiYuqi
Copy link
Owner

BiYuqi commented Sep 21, 2019

@kevin0713 能够捕捉到error吗?

@kevin0713
Copy link
Author

image
正常的jpg图片压缩出来也一样,我用http-server 服务打开进行ios 真机上浏览图片也是显示不出来,Android,pc 机都能正常显示,很奇怪。

@kevin0713
Copy link
Author

ios 和 Android 真机测试图片
image

image

@BiYuqi
Copy link
Owner

BiYuqi commented Sep 21, 2019

@kevin0713 我手头上没有ios设备,你这边应该用的Safari吧,我在网上看了下资料,有人说是不支持base64,base64-image-tag-in-safari-did-not-showed-up 你可以试着不把图片编译为base64(可以在webpack 配置把limit 调小点), 确认下问题原因. 然后针对如果是不支持再找解决方案.

image

@kevin0713
Copy link
Author

@BiYuqi 我测试过把图片单独从小工具转base64 可以显示,应该是webpack 打包的问题,具体我也不知道问题出在哪,还是非常感谢您的解答。这套webpack-seed 很好用,希望越做越好.

@BiYuqi BiYuqi added bug Something isn't working help wanted Extra attention is needed labels Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants