1. A method for processing a digital image comprising a plurality of pixels each having at least one colorimetric component, the method comprising for each pixel of a group of pixels of the image and for each colorimetric component of the pixel: modifying the value of the corresponding colorimetric component so as to obtain a modified value situated inside or outside a colorimetric range associated with the corresponding colorimetric component; performing a correction by: comparing the modified value with the upper and lower limits of the associated colorimetric range, assigning to the corresponding colorimetric component of the pixel a corrected value equal to the modified value if the modified value is included in the associated colorimetric range, or assigning to the corresponding colorimetric component of the pixel a corrected value equal to an additional value if the modified value is not included in the associated colorimetric range, wherein the additional value is chosen from a set of values associated with the corresponding colorimetric component, and wherein the additional value comprises at least one unique reference value included in the associated colorimetric range and different from the limit values of the associated colorimetric range; and representing the pixels of the group based on their colorimetric component(s) assigned with the corrected values.