This paper presents the results of measuring the signal-to-noise ratio at the boundary of object contours in highdefinition images after compression of the original digital stream based on the Fourier transform and the discrete cosine transform. It is shown that when choosing the threshold for limiting the spectral components of the image, one should not only focus on the frequency, but also take into account the magnitude of the differences in the brightness signal in areas of low-contrast textures.