I am now writing a program in PHP to make an image smooth.
I used some of the methods from wikipedia on smoothing.
They introduce few algorithms to make an image smooth.
However, I could not find a method that is also reversible, i.e. I could not go back from the smooth image to the original image.