With a memory consumption of 3 bytes, an entire pixel can be displayed (1 byte each for red, green and blue). And one byte can represent exactly 256 values. Most of your images will be in the RGB color model (as is our example image), and thus one pixel of your image consists of the three colors (or color channels) red, green, and blue, each of which can have 256 gradations.Ģ56 increments, because each color of a pixel should be represented by the memory consumption of 1 byte. In the course of the article, I will continue to work with this image and bring you closer to the subtleties that lead to this fact. Take a look at these two balls-pictures: 4,492 Bīoth images look the same, have the same width and height, both are PNGs, but the file size is significantly different. In order to be able to compare file sizes resulting from the use of different tools (, Photoshop, TinyPNG and Co.), I would like refer you to the section Comparable file sizes in the JPG article. This time however I would like to explain the functionality of a PNG and will show you at the end of the article how you can reduce the file size of your PNGs with the help of Compress-Or-Die (that I will call COD in the rest of the article).Īs with the previous article, I will present some aspects in a simplified way if it facilitates understanding, because no one is helped by mathematician buzzword bingo and few of those who would like to reduce their image sizes are mathematicians, but more likely webworkers or digital advertising specialists. This article is the follow-up article to Finally understanding JPG, which I would like to recommend to anyone who would like a deeper but generally understandable introduction to JPG compression.
0 Comments
Leave a Reply. |