1. A method for predicting pixels of an image block in a digital image based on reference pixels spatially adjacent to said image block, the method comprising the steps of: determining for a pixel of the image block at least one reference pixel adjacent to said block; and predicting said pixel of the image block by applying filtering to said determined at least one reference pixel, wherein the filter characteristic depends on the distance of said pixel of the image block to said at least one reference pixel.