How do different images from the same camera vary in file size?

616 views

Wouldn’t a camera with a constant resolution capture images of the same quality and therefore file size? How is it possible that some images on my camera can be 1.5 MB, and others 2.5 MB?

In: Technology

17 Answers

Anonymous 0 Comments

If you were to use no compression, then sure, every picture would be the same size. For every pixel, you would need 3 bytes of information (or more with more colour depth). Your 2.5MB file wouldn’t even be a full megapixel.

Instead, we use compression algorithms to reduce the amount of data we need to actually hold. We can do things like only store the difference between one pixel and the pixel next to it, since those tend to be very similar values.

The algorithms for good compression can get very complicated very quickly. There are also two forms of compression — lossy and lossless. With lossless compression, you can get the raw file back in its exact format. With lossy compression, you get something that isn’t pixel perfect compared to the original, but (ideally) a human eye can’t tell the difference.

You are viewing 1 out of 17 answers, click here to view all answers.