1. A method for arbitrary ratio resizing of a compressed image in the discrete cosine transform (DCT) domain, the method comprising: determining first and second inverse discrete cosine transform (IDCT) lengths as functions of a scaling ratio and a DCT block length of the compressed image; determining first and second scaling parameters, the first scaling parameter being a difference between a product of the DCT block length and a target image number of blocks and a product of the second IDCT length and an original image number of blocks, and the second scaling parameter being a difference between the original image number of blocks and the first scaling parameter; performing a non-uniform sampling in the DCT domain, in accordance with the first and second scaling parameters, on DCT coefficients of successive blocks in the compressed image, and performing IDCT operations on the non-uniformly-sampled DCT coefficients, in accordance with the first and second IDCT lengths, to provide non-uniformly-sampled pixel domain samples; and performing a DCT operation on the non-uniformly-sampled pixel domain samples to provide DCT coefficient blocks of a resized image.