Too Long; Didn't Read
The Discrete Cosine Transform, or DCT, is a math-based method that comes in handy for image and signal processing. DCT takes an input signal and breaks it down into a bunch of cosine functions, each with its own frequency and size. It examines the frequency content of an image and spots the parts that can be thrown away without making a big difference to the image's quality.