Image dimensions, resolution & file size ..

Ask for help and post your question on how to use XnView MP.

Moderators: helmut, XnTriq, xnview

Post Reply
dec
Posts: 24
Joined: Sun Aug 07, 2022 4:18 am

Image dimensions, resolution & file size ..

Post by dec »

i am confused. there is something i obviously do not know/understand about image files

i do not understand why files can have same size image and resolution, but different file sizes, or different variations of that issue

i have attached some examples

it makes me really worried that i don't understand what is going on and have been culling the wrong files

kindest
Attachments
21-10-2022 08-45-30.png
21-10-2022 08-48-32.png
21-10-2022 09-30-45.png
21-10-2022 09-30-45.png (10.47 KiB) Viewed 853 times
21-10-2022 09-44-03.png
21-10-2022 09-44-03.png (11.06 KiB) Viewed 853 times
21-10-2022 09-56-15.png
21-10-2022 09-56-15.png (11.1 KiB) Viewed 853 times
cday
XnThusiast
Posts: 4395
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Image dimensions, resolution & file size ..

Post by cday »

dec wrote: Fri Oct 21, 2022 3:02 am I do not understand why files can have same size image and resolution, but different file sizes, or different variations of that issue.
An image consists of a matrix of pixels, each pixel having a colour value, most commonly expressed by RGB (Red, Green, Blue) intensities. For example, pure red has RGB pixel values of 255, 0, 0.

An image can be saved in different file formats, for example JPEG, PNG, TIFF or in many other less-common formats. The size of the resulting file depends on the format used, and often also on the particular format saving options used, for example which of several available compression options is selected.

The saving process may be lossless, when the image displayed when the file is opened in an image viewer is an exact copy of the original image, or lossy, when the image displayed when the file is opened in an image viewer may differ slightly from the original image saved. The practical advantage of lossy compression can be that images can be saved as much smaller files, with little or no perceptible difference in quality when they are displayed. In practice that is often an acceptable, or for large image collections a very useful, trade-off.

The quality required when an image file is opened depends on how the image will be used: whether as a photo on a webpage that will only be viewed quickly, or maybe as an image containing fine detail such as thin lines and text that may be viewed closely.
Post Reply