Digital image processing involves compressing images to reduce file sizes. Image compression removes redundant data using three main techniques: coding redundancy reduction assigns shorter codes to more common pixel values; spatial and temporal redundancy reduction exploits correlations between neighboring pixel values; and irrelevant information removal discards visually unimportant data. Compression is achieved by an encoder that applies these techniques, while a decoder reconstructs the image for viewing. Popular compression methods include Huffman coding and arithmetic coding. Compression allows storage and transmission of images and video using less data while maintaining acceptable visual quality.