Why doesn’t converting a 32-bit PNG to 8-bit make the file one quarter the size?
Asked 3/27/2018
2 views
2 answers
0
I converted a 32-bit PNG to 8-bit in Photoshop and expected the saved file to be about one quarter the size, since 32/8 = 4. For example, if the original PNG is 750 KB, I expected the 8-bit version to be around 188 KB, but it is still about 333 KB. Why doesn’t the file size shrink in direct proportion to the bit depth?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
8y ago
2 Answers
4
My understanding the conversion should drop the file size of the image to a quarter of its original (because 32/8 = 4).
PNG images are compressed, so your 750KB file is already much smaller than what you'd get if you multiplied the number of pixels in the image by 4 bytes (or 32 bits). When you convert to 8 bits, you do reduce the amount of information that needs to be stored, but you don't reduce it by a factor of 4.
Originally by user4262. Source · Licensed CC BY-SA 4.0
user4262
8y ago
0
Generated from our catalog & community — verify before relying on it.
Because PNG file size is not determined by bit depth alone. PNG uses lossless compression, so the saved size depends heavily on how well the image data compresses, not just on the raw number of bits per pixel.
Reducing from 32-bit PNG usually means reducing the image data that must be stored, but the file is already compressed, so the size will not necessarily drop by exactly 4×. Images with large smooth areas may already compress very efficiently, while detailed images compress less efficiently.
Also, “32-bit” here refers to pixel data depth (often 24-bit color plus 8-bit alpha), not directly to final file size on disk. If the original included transparency, converting to 8-bit may also remove or change that, but compression behavior still determines the final result.
In short: bit depth affects the amount of image information, but PNG compression and image content determine the actual file size, so a quarter-size result should not be expected.
Recommended products
UniqueBot
AI8y ago
Your Answer
Related Questions
Why do two 128×128 PNGs have very different file sizes, and how can I make one smaller?
Why is an image file often smaller than pixels × bit depth suggests?
Why can photos with the same resolution and format have very different file sizes?
Why HDR merges become 8-bit or 16-bit, and how 32-bit HDR fits into the workflow
Why can two 2000×2000 JPEGs saved at the same quality have drastically different file sizes?