pixels with a 0 are refereed to as black.
pixels with a 1 are refereed to as white.
256 different colours.
all 3 colours channels (Red, Green & Blue) are represented in 8 bits. See the image to the right of 8-bits, where:
1st 3 bits on the left represent the amount of Red.
then the next 3 represent Green
and the last 2 represent Blue.
24 bits almost always use 8 bits each of R, G, and B.
As of 2018, 24-bit color depth is used by virtually every computer and phone display and the vast majority of image storage formats.
Almost all cases of 32 bits per pixel assigns 24 bits to the color, and the remaining 8 are the alpha channel (controls the transparency or opacity of a colour) or is unused.
Deep color consists of a billion or more colors .
Using 12 bits per color channel produces 36 bits, approximately 68.71 billion colors. If an alpha channel of the same size is added then there are 48 bits per pixel.
Using 16 bits per color channel produces 48 bits, approximately 281.5 trillion colors. If an alpha channel of the same size is added then there are 64 bits per pixel...
Because more and more visitors are visiting websites on mobile devices. Not only are network speeds relatively slower when compared to dedicated networks, but not everyone has unlimited data.
And since Google penalizes pages that load too slowly by showing them lower in search results, improving load times is a no brainer way to increase traffic, sales and conversions.
When you choose the wrong image format you could be inadvertently serving up a bigger image than is necessary. Additional image file capabilities (such as transparency), unnecessary detail and too many colours all add bloat to your images. Sometimes, these are necessary and other times they’re not. If your image doesn’t have transparency, for example, then you’re really not giving anything up if you choose an image type that doesn’t support transparency.
The key is to only add what you need.
You also need to consider the image in relation to the rest of your webpage in order to choose the optimal file size. The average webpage is presently near 2MB so you want to stay under that limit to have a relatively fast site. This means you have to look at the total of all the assets on your site, not just images.
A large detailed hero image that is 1MB won’t be a big deal if it is the only image on a page with mostly text; however, if you’re going to display 10 large images on a page that are all 1MB then it will be a slog to load. You can compromise by displaying fewer images or showing them all at a smaller size.
From: TechTerms
GIFs store image data using indexed color, meaning a standard GIF image can include a maximum of 256 colors. Can also be used to create animated images.
GIFs are better suited for buttons and banners on websites, since these types of images typically do not require a lot of colors.
However, most web developers prefer to use the newer PNG format, since PNGs support a broader range of colors and include an alpha channel. (The alpha channel makes it possible for a single image with transparency to blend smoothly with any webpage background color.) Still, neither JPEGs nor PNGs support animations, so animated GIFs remain popular on the web.
From: TechTerms
PNGs are commonly used on the Web and is also a popular choice for application graphics.
Unlike the JPEG and GIF formats, the PNG format supports an alpha channel, or the "RGBA" color space. The alpha channel is added to the three standard color channels (red, green, and blue, or RGB) and provides 256 levels of transparency. JPEG images do not support transparent pixels and GIF images only support completely transparent (not partially opaque) pixels. Therefore, the PNG format allows Web developers and icon designers to fade an image to a transparent background rather than a specific color. A PNG with an alpha channel can be placed on any color background and maintain its original appearance, even around the edges.
While the PNG image format has many benefits, it is not suitable for all purposes. For example, digital photos are still usually saved as JPEGs, since PNGs take up far more disk space. GIFs are still used for animations since PNG images cannot be animated.
From: TechTerms
Supports 224 or 16 million colors. (24-bit colour depth) The format also supports varying levels of lossy compression, which makes it ideal for web graphics. Three values of 0 produce pure black, while three values of 255 create pure white.
The JPEG compression algorithm may reduce the file size of a bitmap (BMP) image by ten times with almost no degradation in quality. Still, the compression algorithm is lossy, meaning some image quality is lost during the compression process. For this reason, professional digital photographers often choose to capture images in a raw format so they can edit their photos in the highest quality possible. They typically export the pictures as JPEG (.JPG) images when they are shared or published on the web.
From: JotForm "Because JPEG uses lossy compression, images saved in this format are prone to “artifacting,” where you can see pixelization and strange halos around certain sections of an image. These are most common in areas of an image where there’s a sharp contrast between colors. Generally, the more contrast in an image, the higher quality (less compression) the image needs to be saved at to result in a decent-looking final image. "
For saving small images and images with a lot of text, the GIF format is often a better alternative. JPEG images also don't support transparency. Therefore, the JPEG format is a poor choice for saving artificial images like logos, especially if they will be published on webpages with different background colors. The PNG format, which supports transparent pixels is more ideal for these types of images.
From: CSFG JPEG is used for photos and natural images, but GIF and PNG work better for artificial images - like logos of text.
Compressed JPEG Image looks ok on the left, but a close-up look reveals the artifacts.
From: cambridgeincolour
TIFF Is a standard in the printing and publishing industry. (you can print a TIFF file unlike a RAW file) TIFF files are significantly larger than their JPEG counterparts, and can be either uncompressed or compressed using lossless compression. Unlike JPEG, TIFF files can have a bit depth of either 16-bits per RGB channel for 48-bit colour depth or 8-bits per RGB channel for 24-bit colour depth.
TIFF files are an excellent option for archiving intermediate files which you may edit later, since it introduces no compression artifacts.
A raw image is the pure data directly saved from the camera's image sensor onto the card.
Not compatible with some image editing and viewing software. Can't print RAW files so they need to be converted to another format first.
From: HowToScan
Editing: Because 48 bit is larger in file size, you have a lot more digital information to work with. So if you're doing any editing for magazines, print ads, movies, it's best to work with 48 bit TIFF or RAW scans.
Future Proofing: You never know when they'll finally come out with at 48 bit monitor screen!
GIF
If animation is required.
Line drawings and simple graphics.
JPEG
Photos, especially without high contrast.
Screenshots, especially of movies, games, or similar content.
PNG
Line art, illustrations.
Photos with high contrast.
Transparency, especially alpha channel transparency.
Application screenshots or other detailed diagrams.
GIF
Images with gradients.
Photos.
JPEG
Images with high contrast.
Detailed images, especially diagrams.
Simple graphics (the file sizes are larger).
PNG
Photos with low contrast (file sizes are larger).
identifying reasons for compressing files.
showing how the chosen media type can be represented using bits in an uncompressed form.
showing how a lossless compression method works.
giving examples of when lossy compression is appropriate.
exploring the relationship between lossy compression and human perception of the medium.
evaluating lossy and lossless compression methods.
evaluating how real-world applications are enabled by relevant representations including lossy, lossless, compressed or uncompressed.