JPEG is a commonly used algorithm.

Different algorithms have different levels of and quality.

In Run Length Encoding, consecutive occurrences of the same are replaced with a single instance of that character followed by the number of times it occurs.

Compression artifacts can compromise the overall visual of the image.

Lossy compression algorithms sacrifice some in order to achieve higher compression ratios.