You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
------------------ 原始邮件 ------------------
发件人: "haizhilin"<notifications@github.com>;
发送时间: 2020年3月3日(星期二) 上午10:24
收件人: "haizlin/fe-interview"<fe-interview@noreply.github.com>;
抄送: "圣美の曲速99"<1679053496@qq.com>; "Comment"<comment@noreply.github.com>;
主题: Re: [haizlin/fe-interview] [软技能] 第322天 图片是不是越小越好?如何优化图片呢? (#1997)
图片不是越小越好,越小越容易失真
那越大呢?越大会失真吗?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Activity
Sylern commentedon Mar 3, 2020
图片是不是越小越好或者越大越好取决于要求展示的效果,通常图片大会更清晰,渲染更慢;优化图片:1、切割成多张拼接 2、懒加载 3、cdn部署 4、矢量图及iconfont等
why-debug commentedon Mar 3, 2020
图片不是越小越好,越小越容易失真
haizhilin2013 commentedon Mar 3, 2020
那越大呢?越大会失真吗?
why-debug commentedon Mar 3, 2020
longhui520 commentedon Mar 3, 2020
多个小图可以合成一个图;图片懒加载
forever-z-133 commentedon Mar 12, 2020
尺寸大小确实和内存大小有关,也和色值量有关。
尺寸和内存越小,色值量也会少,会模糊,也会丢色。
小图嘛,阔以合图,也阔以 base64,也阔以用 svg 或字体重做。