We present a nonlinear lossless compressor for multispectral images that exploits both intraband and interband correlations. A 2-dimensional wavelet transform is performed on each image band, and then the interband and remaining intraband correlations are exploited via an affine prediction of the wavelet coefficients, conditioning it to class information.