This is gonna get me some heat.... /forums/images/graemlins/crazy.gif
DPI has nothing to do with the size of the image file as it is stored on disk. DPI is a setting that is only used when outputting the image data to a physical medium such as monitor or printer. The horizontal and vertical pixel resolution of the image data are divided by the DPI of the physical device, which then gives you the actual linear dimensions of the outputted image.
There are three and only three factors that determine the size of the image file as it is stored on the disk.
<ul type="square"> [*]Raw pixel count (H x W) - 640 x 480 = 307,200 pixels [*]Color depth - 8 bits per pixel, 24 bits per pixel and 32 bits per pixel are common (8 bbp is grey scale, 24 bbp is RGB color, 32 bbp is RGB + Alpha blending) [*]Compression algorithm (JPG, PNG, etc) [/list]
For example......
An
uncompressed image with horizontal resolution of 640 pixels and a vertical resolution of 480 pixels and a color depth of 24 bits per pixel is going to be exactly 921,600 bytes, plus a little for image header information if present. That 900Kb file is then reduced by applying a compression algorithm such as JPEG, PNG or JPEG 2000. The algorithm then uses various "magic" to reduce the file size. Most compression algorithms have a setting for the quality of compression to be used. JPEG uses a scale of 0% - 100% quality, with 0% being extremely high compression (really poor visible image quality, but tiny file size) and 100% being low compression (excellent visible image quality, but large file size).
The only way to reduce the file soze of an image is to reduce the horizontal and vertical resolution, increase the compression ratio, or both.
Dave
Other References:
Say NO to 72dpi!
Image size and Resolution