1. Common business scenarios for pictures in different formats
  • JPG lossy compression, high compression rate, does not support transparency, most do not need transparent service scenarios
  • PNG transparent support, compatible browser, PNG8/24/32, PNG8 can support, the smallest file size. Most require transparent business scenarios
  • SVG vector image, code embedded, relatively small, image style relatively simple, image style relatively simple business scene (icon, LOGO).

2. Embed the image content into HTML to reduce the number of HTTP requests tinypng image compression tool