The uncompressed-size formula
Multiply width by height to count pixels, then multiply by total bits per pixel and divide by eight to get bytes. The estimate rounds up to a full byte for each image. Decimal MB uses 1,000,000 bytes; binary MiB uses 1,048,576 bytes.
bytes per image = ceil(width × height × bits per pixel ÷ 8)Worked exampleA 1920 × 1080 RGB image at 24 bits per pixel needs 6,220,800 packed pixel bytes: 6.22 MB or about 5.93 MiB. An 8-bit RGBA buffer for the same dimensions needs 8,294,400 bytes.