- Joined
- Aug 6, 2009
- Messages
- 2,132
- Reaction score
- 429
SO here is deal, I have a software that runs on a pda. User has to enter couple text fields and an B&W image area is for the signature. The original software designed that each pixel from the image is a byte (0 being empty, 255 black/filled). Image is 300*180px so it comes around to around 52kb in size. This has to be sent over network to central server for whatever.
I figured why not optimize it. I know that image is fixed size 300 by 180, and it is black and white only. Why not store whole image in bits. What I mean is, instead of single pixel taking one byte (8bits) i can have single pixel take one bit (1 for filled and 0 for empty). That's about 6k total size for image.
Considering that company has about 1000 people using the software, each person sends an image 80 times a day it comes down to roughly 4200mb of data usage for images only. And since company pays for each mb of use (rate cant be disclosed) we could save couple hundred bucks for let's say a new coffe maker or toaster for the office. Also using bits will cost us around 520mb a day of data usage.
Now question to the experts and not, would you consider this as a good optimization + money saving (for new coffe maker)?
Explained more what I meat by "suing bits to store image":
I figured why not optimize it. I know that image is fixed size 300 by 180, and it is black and white only. Why not store whole image in bits. What I mean is, instead of single pixel taking one byte (8bits) i can have single pixel take one bit (1 for filled and 0 for empty). That's about 6k total size for image.
Considering that company has about 1000 people using the software, each person sends an image 80 times a day it comes down to roughly 4200mb of data usage for images only. And since company pays for each mb of use (rate cant be disclosed) we could save couple hundred bucks for let's say a new coffe maker or toaster for the office. Also using bits will cost us around 520mb a day of data usage.
Now question to the experts and not, would you consider this as a good optimization + money saving (for new coffe maker)?
Explained more what I meat by "suing bits to store image":
8 pixel will be stored as one byte. One pixel per bit, 1 for being filled (black) and 0 being empty (white space/empty/nothing). Where is in current software each pixel takes 1 byte (8 times more space???).