Please refer the following thread on how to ask a question and get a fast answer http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
With regards to your question there are a lot of file exchange submissions for Image compression.