Wavelet based compression can be achieved by suppressing coefficients below a threshold (or preserving a predetermined number of significant coefficients). Compressed sensing on the other hand projects the data to a lower dimension (assuming sparsity in a domain such as wavelets) and reconstructs by solving (a relaxed version of) an optimization problem. What is the advantage of one over the other? CS seems like a round about way of doing things that can be achieved straightforward by DWT. Although one needs to keep track of the index of significant coefficients in wavelet compression, I am ending up with DWT based compression outperforming CS! Is there a distinct advantage of CS for compression?