We are putting photos on a device with not much room on it.Before I buy anything I want to know how big an image actuallyis, and how much I save if I drop the color quality. Give menumbers I can read.Write your requirements list before you write any code. Input, calculate, output, and anything you had to decide for yourself.
64x64: 8-bit 12.3 kB 2-bit 3.1 kB800x600: 8-bit 1.4 MB 2-bit 360.0 kB4000x3000: 8-bit 36.0 MB 2-bit 9.0 MBDropping from 8 bits to 2 divides the size by exactly four, at every size. Your requirements list should predict that before you run it.
Your requirements list and your program file, named cc-storage-estimate.