Color depth, also known as bit depth, refers to the number of bits used to represent the color of a single pixel.
For example, with a color depth of 1 bit, a pixel can only be black or white (2 colors).
With 8 bits, a pixel can represent 256 different colors.
With 24 bits (commonly used in true color images), a pixel can represent over 16 million colors (because each color—red, green, and blue—is represented by 8 bits, allowing for 256 shades of each).
i.e. if we have an image with 3 pixels width and 3 pixels height, and it is using 2-bits for bit depth
If we have an image of 3 pixels width and 3 pixels height, and it is using 15 colours - we need to convert this to bit depth
15 colours would need at least 16 values which would be 4-bits soooo