Caching and File Sizes

To calculate the uncompressed file size of an image, you multiply the image height by the width, and then multiply that result by the number of color channels in the image:


Note: The last variable (number of color channels) is typically three (RGB) or four (RGBA), depending on if you have an embedded alpha channel in the image or not.

Using the equation on a single D1 NTSC frame, you can see the following result:


This equates ...

Get Focal Easy Guide to Discreet combustion 3 now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.