Discrete cosine transform
With pictures, frequencies are like stripes and checker patterns. Just like with sound, you can make any picture out of different frequencies. Also like sound, people's eyes are not as good at seeing high frequencies (hard edges and fine grain) as low frequencies (solid colors and smooth shades). JPEG encoders use this fact almost exactly the same way as MP3 encoders do.