1. A computer-implemented method comprising: segmenting a digital image into multiple blocks; for each block of the multiple blocks, identifying a respective set of statistical characteristics of the block; and encoding each block of the multiple blocks with a particular encoding algorithm of multiple encoding algorithms, the particular encoding algorithm being selected at least based on statistical characteristics of the block.