Comparison between JPG and WEBP
JPG
JPG is a compressed graphic format. It means that the JPG format is used to
save images and that it compresses those images so that they occupy less
space on the disk. JPG makes lossy compression, which means that it is a
graphic format that compresses images and in this compression the
resulting image is not exactly the same as the original image, but rather
some quality of the image compressed with JPG is lost.
The format has a parameter called quality, which can be altered so that
the compression is higher or lower, always being the higher the
compression the lower the quality.
JPG is intended to compress photographic images. This means that the
images that give the highest quality and best compression when saved in
JPG are photographs.
These are images of a certain size, where a large color palette is used
and where the colors of a pixel are different from the colors around it.
This graphic format is used primarily on the web, along with GIF. The JPG
to save photos and GIF to save drawings.
WebP
Announced by Google on September 30, 2010, a new open standard for
lossy compression of 24-bit graphics on the web was born.
The model for this standard was the VP8 video format, developed by the
company On2 Technologies and which Google had acquired that same year.
Thereafter, Google expanded the WebP format with features such as
lossless compression mode, transparency, and animations.
Chrome has supported the compression format since late 2010, but until
now, as with Opera, you've had to assume that many browsers only support
WebP on an experimental basis.
According to its own statements, Microsoft is currently working to
support it in its own Edge browser.
According to Google, images and graphics in WebP format are roughly 30
percent smaller than JPG files and have the same image quality.
While JPG is based on lossy compression methods, WebP allows both
possibilities, i.e. lossy and lossless.
Thanks to this flexibility, the format is suitable for both photographs
and small images and graphics.
WebP vs JPG
What Google represents in the world of search engines, JPG is, in the
presentation of photographs and large images on the World Wide Web.
It is difficult to imagine a website without this image format. Its
biggest advantage is, without a doubt, that JPG saves storage space thanks
to its lossy compression.
In this notorious detail, WebP also proves to be more efficient and
flexible: on the one hand, Google's format offers, in addition to a lossy
compression method, a lossless one.
On the other hand, the saving in storage space for WebP format images
exceeds that of similar JPG images.