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

[问答] 请问国内移动应用主要使用图片格式 #233

Open
wyw91 opened this issue Aug 24, 2015 · 11 comments
Open

[问答] 请问国内移动应用主要使用图片格式 #233

wyw91 opened this issue Aug 24, 2015 · 11 comments

Comments

@wyw91
Copy link

wyw91 commented Aug 24, 2015

主要使用jpg,png还是压缩率更好的webp?

@github201407
Copy link

目前项目:主要是png,很少的jpg,没用webp

@tanranran
Copy link

webp 如果大量同时显示,有卡顿现象.

@zourb
Copy link

zourb commented Aug 27, 2015

@tanranran 为啥卡顿啊,我没有发现这个问题

@tanranran
Copy link

@zourb 可能是应为测试机比较低端吧

@t12x3456
Copy link

主要还是png, jpg极少, 淘宝没少用webp. 但是webp 4.0低版本不支持,需要自己添加webp解析库

@Fengcoder
Copy link

主要是png,视觉切图时,可以调透明度什么的,不过对应png格式的图像耗内存也大;
jpg用的少,透明度设置,需要代码实现,相对于png 进行了很大压缩

@SwordBearer
Copy link

@tanranran webp和其他图片一样,不可能出现卡顿问题的

问题问的有些模糊:是app内部的图片呢,还是用户上传的图片呢(比如头像,朋友圈图片)
1.如果是app内部的,肯定是png
2.如果是用户上传的图片,的一般会处理成jpg格式,上传到服务器后会做webp的转化,别的用户看到的图片就是webp格式的,图片质量不仔细研究看不出来和jpg原图的差别,但是流量却节省了非常多;
如果对客户端图片处理有疑问的,可以细聊哈

@Fengcoder
Copy link

楼上的回答太赞了

@tanranran
Copy link

@SwordBearer webp 相比于png 它比较吃CPU 解码的时间是PNG的8倍

@Fengcoder
Copy link

@tanranran 解码耗时也没有那么夸张,看看这个分析 http://www.uisdc.com/image-format-webp-introduction

@liananse
Copy link

做的应用图片较多,虽然现在流量都挺多,还是能减少就减少一些。使用的webp格式的图片

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

9 participants