Calculating file sizes

Fill in the blanks

To calculate the size of an image, the formula used is: = Width x Height x Channels x Bits per channel. For example, for a normal 2000 by 3000 color RGB image where the Width is , Height is , Channels are Red, Green, Blue, and Bits per channel are (ranging from 0 to 255), the calculation would be 2000 x 3000 x 3 x 8, resulting in bits. When converted to bytes, this gives us 144,000,000 divided by 8, which equals .



In another scenario, for a 2000 by 3000 color Grayscale image, where the Width is , Height is , Channels are Grey, and Bits per channel are , the calculation is 2000 x 3000 x 1 x 8, leading to bits. When converted to bytes, 48,000,000 divided by 8 gives us .



In a different example involving a custom 40 by 30 Black and White image, the Width is , Height is , Channels are 1 (Black), and Bits per channel are . The calculation results in 40 x 30 x 1 x 1, which equals . When we convert this to bytes, 120 divided by 8 gives us .



For yet another example with a custom 50 by 20 8-bit image, the Width is , Height is , Channels are , and Bits per channel is . The computing would be 50 x 20 x 8, which equals . When converted into bytes, 8000 divided by 8 results in , which is equivalent to .

Keywords

18 megabytes | 1000 bytes | 8 | 1 | 2000 | 8 | 20 | 1 kilobyte | 3000 | 8000 bits | 120 bits | 6 megabytes | 30 | 15 bytes | 48,000,000 | 8 | 1 | 3000 | 50 | file size (bits) | 144,000,000 | 2000 | 40 |