Okay, Muhammad -- I agree and disagree with you on this one. /w3tcompact/icons/smile.gif
Although I used Photoshop to set the dpi to 400, the raw
.gif file format does not maintain that information. I thought it did, but it turns out the "resolution" field in
.gif files refers to the bits per pixel, which to me is the color depth. Photoshop apparently stashes the dpi information somewhere other then the data portion of the file, because it remembers it when you re-open that file. Oh well.
.jpg files, however,
do have a resolution field which
does refer to the dpi. This information is available to any software reading the file, if it needs or chooses to, but browsers, as far as I know, ignore it. Unless otherwise specified in the HTML, they will simply interpret the image size by its overall dimensions, using whatever "resolution" is native to the display device.
I tend to scan stuff at high resolution (simple setting in my scanning software) and then monkey it down to whatever suits me later. That's just me.
So, although I agree with all your resolution math, I still think it's probably safest and most predictable to pick an image size, in pixels, for your final output.
I've attached a
.jpg version of my doodle file, Muhammad. When I download it back from the server, Photoshop still knows the resolution is 400 dpi. If I'm putting 2 plus 2 together and coming up with 5, I would appreciate any clarification you can provide. /w3tcompact/icons/wink.gif