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.
GIF is one of the most common raster image formats. Its name is an abbreviation for Graphics Interchange Format File. The developer is the CompuServe organization. A feature of this particular image format is its ability to support the animation function. You can edit animated GIFs in different programs (for example, Easy GIF Animator). Animation is achieved due to the fact that a file of this format carries in itself in a certain sequence several raster images at once. With a depth of up to 256 colors, significant data compression in GIF files is possible without loss of quality.