Question: why zigzag scanning in jpeg?
Answer: Zigzag scan is a part of JPEG compression process (see Figure 1) that holds important role in grouping DCT process result and quantization values into DC low frequency and AC high frequency components. Zigzag scan contributes to the increase in picture and video compression ratio.