The attached utility is a work I've submitted to the university. It shows what a jpeg compression is all about.The function implements the DCT transform, using a matrix operator. Note that MATLAB has a function for the DCT and iDCT transforms that might be more efficient.Read the ReadMe.txt for some details about the algorithm.