Data storage is measured in various units, starting from bits and bytes to larger units like KiB, MiB, GiB, TiB, PiB, and EiB, with specific byte equivalents for each. To calculate the file size of an image, one must determine its resolution and color depth, then apply a formula to convert bits to bytes and potentially larger units. The document also includes exercises for calculating file sizes based on given pixel dimensions and color depths.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
5 views1 page
Data Storage
Data storage is measured in various units, starting from bits and bytes to larger units like KiB, MiB, GiB, TiB, PiB, and EiB, with specific byte equivalents for each. To calculate the file size of an image, one must determine its resolution and color depth, then apply a formula to convert bits to bytes and potentially larger units. The document also includes exercises for calculating file sizes based on given pixel dimensions and color depths.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
Data Storage
• Data storage is measured in a variety of units, each representing a different size
of storage capacity. The smallest unit of measurement is the bit, which represents a single binary digit (either 0 or 1) • A nibble is a group of 4 bits, while a byte is a group of 8 bits • Kibibyte (KiB), mebibyte (MiB), gibibyte (GiB), tebibyte (TiB), pebibyte (PiB), and exbibyte (EiB) are all larger units of measurement • Specifically, 1 KiB is equal to 210 bytes, 1 MiB is equal to 220 bytes, 1 GiB is equal to 230 bytes, 1 TiB is equal to 240 bytes, 1 PiB is equal to 250 bytes, and 1 EiB is equal to 260 bytes
To calculate the file size of an image file:
• Determine the resolution of the image in pixels (width x height) • Determine the colour depth in bits (e.g. 8 bits for 256 colours) • Multiply the number of pixels by the colour depth to get the total number of bits • Divide the total number of bits by 8 to get the file size in bytes • If necessary, convert to larger units like kibibytes, mebibytes, etc Exercise 1. An image measures 100 by 80 pixels and has 128 colours (so this must use 7 bits). Calculate file size of the image in bytes. 2. An image is 1200 pixels by 1600 pixels. Calculate: ( i ) the total number of pixels in the original image (ii) the number of bytes occupied by this file 3. An image is 1200 pixels by 1600 pixels. Calculate: ( i ) the total number of pixels in the original image (ii) the number of bytes occupied by this file 4. A camera detector has an array of 1920 by 1536 pixels. A colour depth of 16bits is used. Calculate the size of a photograph taken by this camera, giving your answer in MiB. 5. Photographs have been taken by a smartphone which uses a detector with a 1024 × 1536 pixel array. The software uses a colour depth of 24bits. How many photographs could be stored on a 16GiB memory card?