SD Video - 720 px x 480 px = 345,600 total pixels
HD Video – 1920px x 1080px = 2,073,600 total pixels (sometime called 2K resolution)
To convert pixels to inches you need to know that there are 72 pixels per inch. The formula to convert
pixels to inches is X/72=inches, where X is the number of pixels on a side.
720px/72 = 10 inches 480px/72= 6.6666 inches
1920px/72 = 26. 6666 inches 1080px/72 = 15 inches
So once you figure out the size of your bitmap, how can you convert it to a data file size?
There are several formulas for the number of bytes of data each pixel holds, but the average we will
use here is 3, which is the norm for RGB color.
The formula for figuring out the number of bytes in an image is L x W x 3 = Bytes, where the length
and width are measured in pixels.
SD - 720px x 480px x 3 = 1,036,800 bytes (of information)
HD - 1920px x 1080px x 3 = 6,220,800 bytes (of information)
Now how do we convert that to kilobytes or megabytes?
Back in the early computer days, when data cost so much to process and store and we managed data
in kilobytes, the standard was set to binary kilobytes. Memory chips and file sizes are kilobytes (1024
bytes) or megabytes (1024x1024 bytes) or gigabytes (1024x1024x1024 bytes). Yes, it really doesn’t
matter to us today if we have some extra kb’s in storage when we’re measuring our storage in gigs, but
it still matters when you’re saving tens of thousands of images to be used in a game, animation or
video. Even today we still need to keep our file sizes as small as possible.
To convert our photograph to kilobytes we divide by 1024.
To convert to megabytes we divide by 1,048,576 (1024 x 1024)
For gigabytes we divide by 1024 cubed (1024 x 1024 x 1024).
1,036,800 / 1024 = 1,012.5 kilobytes (kb)
1,036,800 / (1024 x 1024) = .9887695 megabytes (Mb)
1,036,800/ (1024 x 1024 x 1024) = .0009655 gigabytes (GB)
9
Copyright © Texas Education Agency, 2015. All Rights Reserved.