The Joint Photographic Experts Group (JPEG) algorythm is a very commonly used method of compression for photographic images. It is also a file format used for storing or transmitting photos.
The JPEG algorythm is lossy which means some details of the original picture are lost when compressing the algorythm. The algorythm has a quality setting allowing to set a balance between smaller file size and better quality.