The invention relates to methods, devices and computer programs for
processing images. The dynamic range of an image is adjusted to allow
more detail in the original image to be reproducible, whilst preserving
the natural look of the image. Improvements to lossy data
compression/decompression algorithms are proposed which include elements
of spatial non-uniformity, for example modifying relatively dark portions
of an image to a greater extent than relatively bright portions of the
image. The algorithms may be made reversible by storing parameters
describing the compression process with a compressed image, which can
then be used to reverse the process when decompressing the image.