For android development can I use JPG image instead of PNG image on image views?

后端 未结 3 2217
情话喂你
情话喂你 2021-02-18 22:53

The main purpose of this question is to know what is the best option to choose between PNG and JPG for android development considering the following scenarios

1) is it a

3条回答
  •  臣服心动
    2021-02-18 23:27

    The main difference is image quality. The PNG format uses a lossless compression, while JPEG uses a lossy one optimized for photos. It depends what is shown on the image if JPEG is a valid alternative. In artificially generated images of geometric figures like logos the artifacts coming from JPEG compression can be easily seen.

提交回复
热议问题