What are the different usecases of PNG vs. GIF vs. JPEG vs. SVG?

后端 未结 13 1791
無奈伤痛
無奈伤痛 2020-11-22 11:28

When should certain image file types be used when building websites or interfaces, etc?

What are their points of strength and weakness?

I know that PNG &

13条回答
  •  无人及你
    2020-11-22 12:06

    GIF is limited to 256 colors and do not support real transparency. You should use PNG instead of GIF because it offers better compression and features. PNG is great for small and simple images like logos, icons, etc.

    JPEG has better compression with complex images like photos.

提交回复
热议问题