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

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