1. A method of processing digital images comprising pixel blocks, said method comprising: a detection step ( 41 ) of detecting blocking artifacts between two adjacent blocks (Bj,bk), a filter step ( 43 ) of filtering the pair of adjacent blocks, characterized in that the filter step is applied as a function of a comparison between luminance values of the pixels of the two adjacent blocks and a reference function representing a difference of minimum luminance values visible to an observer as a function of an average luminance of an image area.