1. A method of minimizing unwanted changes of color during processing of an image of pixels having respective values, the method comprising: processing the image in a device-independent color space by applying a modification function in respect of one or more dimensions of the device-independent color space, the processing involving, for each image pixel or group of pixels: determining, in respect of the one or more color-space dimensions subject of the modification function, modification limits in the device-independent color space as set by the gamut boundary of a target device-dependent color space, wherein the modification function has a dynamic range that depends on parameter values derived from the values of respective ones of the pixels of the image; modifying the image pixel values in the device-independent color space according to said modification function as scaled by a factor dependent on a difference between upper and lower values of the gamut boundary modification limits; and converting the image into the target device-dependent color space.