I want to compare what takes more space, 1,200,000 byte 800x500 image with 3 colors, or space required to store the number of all possible images that can be exist in this space(eg, if there was a hypothetical database of all possible images with a unique identifier and the address of the image, would identifying the image by the unique identifier take less space than the image takes up by itself).
For example. a 1x1 image in this format could be stored using 3 bytes (excluding the width/height at start of file which takes 4 bytes each). But this 1x1 space would contain 16,581,375(255^3) possible images(as each color pixel is a unique image), and 16,581,375 can be stored in 3 bytes as well, as 3 bytes represent 0 through 16,777,215.
How do I determine how many possible images exist in such a space beyond a 1x1 image?