Removing perceptual redundancy plays an important role in image compression. In this paper we develop a foveated just-noticeable-difference (FJND) model to quantify the perceptual redundancy in the image and integrate it in the H.265/HEVC intra encoding framework to provide a perceptually lossless image coding solution. Different to the conventional JND models, our proposed FJND model considers the relationship between contrast masking effect and the foveation properties of HVS. Furthermore, to achieving the perceptually lossless coding, the FJND model is integrated in the H.265/HEVC framework by determining the quantization parameter to ensure that the resulting distortion is no larger than the FJND threshold. The experiments demonstrate that the proposed method effectively improves the compression performance.