Example: we can send the image to some server side function and do the reduction on server side. ;-)
But hopefully we find some client side JavaScript processing to do this. I remember one core problem was in the Java client the quality of the shrinked image, so I hope we will not touch this topic again...