JPEG images use a technique called DCT encoding to split an image into 8x8 pixel blocks before ... JPEG and PNG files store 24 bits for each pixel, whereas GIF images only store 8 bits per pixel.