Ahsan Alii
Ahsan Alii

Reputation: 153

Why the file/memory size of picture doesn't depend on the number of pixels?

Why the size of every 1024 X 768 image (or any two or more images of same resolution) is not fixed ? while they've same number of pixels ?

Upvotes: 0

Views: 745

Answers (1)

comingstorm
comingstorm

Reputation: 26107

Because most image formats compress the image, so that its size depends on its content. Also, there are many options to most image formats, so even if they are uncompressed, a different image writer may produce a different file size for the same image.

Raw image formats (say for high-end digital cameras) are usually uncompressed; you might expect that raw-formatted images from the same camera at the same resolution setting would all have the same size.

Upvotes: 1

Related Questions