How to calculate
Multiply width by height to get total pixels. Multiply by bits per pixel, divide by eight, then round up to the next whole byte. When starting from print measurements, convert to inches, multiply by PPI, and round each dimension up to a pixel.
Worked example
Use Image dimensions Pixel dimensions · Width in pixels 3840 · Height in pixels 2160 · Pixel format RGB or YCbCr 4:4:4 · Bits per sample 8 · Output unit MB. The result is 24.8832 MB.
Input and result notes
This is packed pixel data. JPEG and PNG compression, row padding, color profiles, and file headers change actual file size.
Omni uncompressed image storage method