The DCT decomposes signals into cosine basis functions. JPEG uses the 2D DCT on 8×8 image blocks — keeping only the low-frequency coefficients achieves lossy compression.
Original Signal (16 samples)
DCT Coefficients
Reconstructed Signal (IDCT with truncated coefficients)