An image captured with a digital camera with pixel dimensions of 640 x 480 px at 24-bit color depth produces a file size of 0.92 MB. This is calculated by multiplying the total number of pixels by the number of bits per pixel to get the total number of bits and then dividing by 8 to get the number of bytes, thus:
Document Image File Size = (( height x width ) x PPI 2 x color depth ) / 8 Image File Size = ( pixel dimensions x color depth ) / 8
Using the formula gives:
Image File Size = (( 640 x 480 ) x 24 ) / 8 = 921,600 bytes = 921,600 / 1000 = 921.60 KB = 921.60/ 1000 = 0.92 MB
Source: Sklar David (2016), HTML: A Gentle Introduction to the Web’s Most Popular Language, O’Reilly Media; 1st edition.