WebP is an open-source format for image files, raster images. Created in 2010 by Google for web graphics in order to quickly upload images to web pages. This is the main advantage of WebP files. Compression of images in this format can go with or without loss, depending on what level of quality you want to achieve. Thus, lossless compression is 26% better than in PNG files. If quality loss is acceptable, then compression in WebP format is 25-34% better than in JPEG files. Full support for WebP is not yet available on Firefox, Internet Explorer, and Safari.
JPEG is the most common and popular bitmap format. The form got its name from the name of the organization-developer Joint Photographic Experts Group. Files of this format are used today in all digital cameras and cameras. They have a good compression ratio and support 24-bit color depth. Since such compression significantly reduces image size with virtually no loss of quality, JPEG format is widespread on the Internet. However, the stronger the compression, the worse the quality. In addition, the JPEG format does not support the transparency option.