1. A method of controlling a compression of an image according to a degree of photo-realism in the image, comprising: computing a value indicating a degree of photo-realism for an input image based on a distribution of pixel luminance values within the image; calculating a configuration parameter based on the photo-realism value for the image; and configuring an encoder to compress the image according to the configuration parameter.