What is real image size?

  • Thread starter Thread starter luminore
  • Start date Start date
L

luminore

My picture (jpeg)have the following size(right click on image
"properties"):

Size: 60.6 KB(62109 bytes)
Size on disk: 64.00KB (65536 bytes)

What is real size of my image?

Why this size varies? I have strict requiremt, there are allowed to apply
image which maximal acceptable jpeg size is 62.500 bytes.

Which size is corect?
 
luminore said:
My picture (jpeg)have the following size(right click on image
"properties"):

Size: 60.6 KB(62109 bytes)
Size on disk: 64.00KB (65536 bytes)

What is real size of my image?

Why this size varies? I have strict requiremt, there are allowed to
apply image which maximal acceptable jpeg size is 62.500 bytes.

Which size is corect?

Depends on the cluster size of the media it is stored on and how the OS
interprets the size.
 
The real size is 62,109 bytes.

Files are stored on your hard disk in clusters of blocks of 512 bytes,
with each file starting on a new unused cluster. If the end of a file
falls in the middle of a cluster, the rest of the cluster cannot be
used for another file. So, for example, in your case you seem to have
a hard disk formatted with an 8-block cluster size. The end of your
file is somewhere in the second block of the last cluster used by your
file with the result that 6.69 blocks are unusable for another file -
this is why while your file size is actually 62,109, its size on your
hard disk is 65,536 bytes, or a full 16 clusters of 8 blocks each.


Karl


My picture (jpeg)have the following size(right click on image
"properties"):

Size: 60.6 KB(62109 bytes)
Size on disk: 64.00KB (65536 bytes)

What is real size of my image?

Why this size varies? I have strict requiremt, there are allowed to
apply
image which maximal acceptable jpeg size is 62.500 bytes.

Which size is corect?
 
The size on disk would be 64.00KB (65536 bytes) if the cluster size was 4,
8, 16, 32, or 64 KB.
There is no way to tell the cluster size from the information given.
 
Ron Sommer said:
The size on disk would be 64.00KB (65536 bytes) if the cluster size was 4,
8, 16, 32, or 64 KB.
There is no way to tell the cluster size from the information given.
 
There is no way his cluster size is 4 - his file size is 6.xxx blocks
short of 64K !

A standard XP system does not allocate 16, 32, nor 64 unless the
end-user changes it (and this end-user would not have done so
otherwise he would not be asking this question) or unless the
partition size is 120Gb or larger.


Karl


The size on disk would be 64.00KB (65536 bytes) if the cluster size
was 4,
8, 16, 32, or 64 KB.
There is no way to tell the cluster size from the information given.
 
4 Kb is 8 blocks.
6.xxx blocks is less than 8 blocks.

You don't know if "luminore" has only one partition on one disk, what file
system is being used, or what the disk size is.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top