The actual saved file size is approximately 2 times the
file size indicated in the photoshop dialog (in this
case, I'm saving as a JPEG file). E.g. It predicts
81.1k, and the file size is 170k after saving.
Yep--but not really.
This is one of the things that's really tricky to understand, because it involves understanding how a computer allocates space on a hard drive.
When you save a 1-byte file on a hard drive, it does not take up 1 byte of space on the drive. A computer has to allocate space on a hard drive in "chunks," called "allocation blocks." The minimum size of an allocation bloack depends on many things--the total size of the hard drive, the operating system of the computer, and the way the hard drive is formatted.
Let's say that your computer's minimum allocation size is 64K. A one-byte file will show as 64K on disk. A 100-byte file will show as 64K on disk, as will a 2K file, and a 63K file. All space on the disk must be allocated in 64K chunks. the one-byte file occupies only one byte of that 64K chunk; the rest is wasted. if you upload it to a Web server, only 1 byte will get transferred--but the file still takes up 64K on your hard disk.
Now, a 66K file is going to occupy 128K of space on the disk--because it's too big to fit into one chunk, so it takes up two.
If you click on a file on your Mac and go to File->get info, you will see the file's size listed twice. The Get Info window will show the amount of space taken up on disk, and also the actual "true" size of the file.
So in our hypothetical example, let's say your allocation size is 64K. When you do a Get Info, you will see something like this:
Size on disk: 64K (19,230 bytes).
This tells you that the file is approximately 19K in size--iuf you upload it to the Web, 19,230 bytes will be sent. however, it takes up 64K of space on the hard disk, because that's the minimum allocation size.
Another factor which might be important as well is the fact that you might be instructing Photoshop to save an icon, a thumbnail, or an ICC color profile. The file size in the Save As window is only the pure JPEG information. Adding a thumbnail, a preview, a color profile, or other metadata will increase this size.
--
Art, literature, shareware, polyamory, kink, and more:
http://www.xeromag.com/franklin.html