What Scott said is basically what's going on. The most basic interpretation is that when you have large areas of pixels with the same color values lined up together it's easier for the compression algorithm to do it's job. When a picture contains lots of fine detail and pixel-to-pixel variations in color it's harder for it to compress the image.
Higher iso images tend to have more noise, and thus more variation in color from one pixel to the next. Images with a lot of sharpening applied to them will also end up with larger file sizes - all else being equal, because sharpening induces more variation in pixel-to-pixel color.
Your sunset pic has large areas of pixels with the same color values all lined up together. The compression algorithm basically looks at the image line-by-line and says "the next X pixels are color Y". That bit of information can be stored in a byte or two. When the pixel color information changes it stores another "next X pixel(s) are color Y" value, and so on. In a pic like your sunset pic you might have 500 pixels (for example) in a row that are all the same color. Each individual pixel's information doesn't have to be stored, just a single value for how many pixels in the sequence and another value for what color.
In your second pic of the Anasazi house there are not these large blocks of same-colored pixels so the compression algorithm has to store a lot more individual values. Instead of 500 adjacent pixels all having the same color value and being stored in a small package, that file is going to have a lot more instances of only 2 or 5 or 10 pixels adjacent to each other having the same value.
I'm sure the compression algorithm is actually much more complex than that, but in a nutshell that's what it's doing and why a picture with large blocks of solid colors will be much smaller than a pic with lots of fine detail and variability from one pixel to the next.
...Some will fall in love with life and drink it from a fountain that is pouring like an avalanche coming down the mountain...
"I enjoy skinny skiing, bullfights on acid..." - Lacy Underalls
The problems we face will not be solved by the minds that created them.
Bookmarks