Pixels stay byte-exact, only storage becomes more efficient.
PNG, WebP-Lossless and AVIF-Lossless work losslessly — no pixel is altered. Achieved through entropy coding (Deflate, Huffman) and prediction models.