A grayscale image is just a matrix of numbers. The singular value decomposition rewrites that matrix as a stack of simple rank-1 layers, sorted from most important to least. Keep only the top few and you get the mathematically best possible approximation at that size. Drag k and watch the picture rebuild itself, one direction at a time.
Each layer is an outer product σi ui viT — a single vertical pattern times a single horizontal pattern, scaled by its singular value σi. The rank-k image is just their sum:
Eckart–Young (1936): among all matrices of rank k, this truncation minimizes the error. And the leftover error is exactly the energy you threw away — the sum of the squared discarded singular values, ‖A − Aₖ‖² = σ²k+1 + … + σ²r. Smooth gradients and big shapes live in the first handful of layers; sharp edges, the checkerboard, and the noise patch need the long tail.