Common 3 image formats and differences:
JPEG-The standard photo format is not transparent.
GIF-It is limited to 256 colors, so it is very good for large solid color and simple images. It supports transparency, but generates a jagged edge.
PNGThe combination of -.jpgand .gif has the quality of the .jpg image and the transparency of the .gif image, and there is no sawtooth.
Currently, GIF is not supported for Android, so only. jpg and. PNG are commonly used ..
The main factors we need to care about are the image size and quality .. The difference between these two points is:
File Size-This is a significant difference. The size of General. PNG is several hundred kb, while that of. jpg is only a few dozen kb.
Color and contrastThe color of -.jpg is richer and more saturated. . PNG does not look so rich.
The following suggestions are provided based on different application requirements:
Use JPG
- If you do not need to save the transparent background of the image;
- If your image needs to save the image quality, color, and saturation.
Use PNG
- When your image needs to be transparent
- When you use a drawing-only image .. The effect of rendering photos in PNG format is not so good.