Now I am even more confused... you have JPEGs that are one million megabytes each?
That is huge for a single JPG.
But, the other issue is this:
JPEG is a file format AND a compression algorithm. It was developed by the Joint Photographic Experts Group (JPEG). Its done with math.... and by comparing pixels that are next to each other.
There is no way to predict exactly how much compression it would take to produce a file that is exactly 5.99mb on size (hard drive space).
Example - a photo that is 2000 pixels wide by 2000 pixels high of a pure white background and a chair in the middle will compress to a smaller file (disk space / download size) then a 2000 x 2000 picture of a field of flowers.
Thats because JPEG will see all those pixels of white that exactly match each other and need to write that to the file just a few times.
(In code its like:
"Take pixel 000001 through pixel 199999 and make them all the color 255255255"
One line of code for 99,000 pixels (because they are all exactly the same shade of white and are next to each other).
In the photo of the field with flowers its more like:
Take pixel 100000 and make it the color 254251208
Take pixel 100001 and make it the color 254251196
So, basically 99,000 lines of code to describe 99,000 pixels.
Thats basic - but you can't predict an exact file size of one millions pictures because they all have millions of different pixels.
|