Skip to content

[软技能] 第322天 图片是不是越小越好?如何优化图片呢? #1997

Open
@haizhilin2013

Description

@haizhilin2013

第322天 图片是不是越小越好?如何优化图片呢?

我也要出题

Activity

Sylern

Sylern commented on Mar 3, 2020

@Sylern

图片是不是越小越好或者越大越好取决于要求展示的效果,通常图片大会更清晰,渲染更慢;优化图片:1、切割成多张拼接 2、懒加载 3、cdn部署 4、矢量图及iconfont等

why-debug

why-debug commented on Mar 3, 2020

@why-debug

图片不是越小越好,越小越容易失真

haizhilin2013

haizhilin2013 commented on Mar 3, 2020

@haizhilin2013
CollaboratorAuthor

图片不是越小越好,越小越容易失真

那越大呢?越大会失真吗?

why-debug

why-debug commented on Mar 3, 2020

@why-debug
longhui520

longhui520 commented on Mar 3, 2020

@longhui520
  • 不是,图片越小,相应的图片的清晰越低,在不影响图片质量的情况下可以适量压缩,
    多个小图可以合成一个图;图片懒加载
forever-z-133

forever-z-133 commented on Mar 12, 2020

@forever-z-133

尺寸大小确实和内存大小有关,也和色值量有关。
尺寸和内存越小,色值量也会少,会模糊,也会丢色。

小图嘛,阔以合图,也阔以 base64,也阔以用 svg 或字体重做。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @haizhilin2013@Sylern@forever-z-133@longhui520@why-debug

        Issue actions

          [软技能] 第322天 图片是不是越小越好?如何优化图片呢? · Issue #1997 · haizlin/fe-interview