These images show the effect varying color depth, the number of bits in the color code for each pixel. Reducing the number of bits lowers the image quality, but it also compresses the file, making it smaller. Compression (of images or any other type of data) trades off quality against file size.