Hi,
I scan my images in .jpg file format at say 200 dpi.When i check the
jpg file properties i don't get the same value at which the images were
scanned.
I am using .NET code to extract the image properties and use the
System.Drawing.Image class. The HorizontalResolution and
VerticalResolution properties of the Image class report a ppi value of
96 for images scanned at 200 dpi.
When i open these image in Microsoft Photo Editor and check for the
image properties it reports a resolution value of 300 dpi whereas
Microsoft Picture Manager reports a dpi value of 96.
Why do different imaging softwares report different dpi values for the
same image?
How do i get the resolution value at which the images were scanned?
Thanks in advance.
It sounds like your software procedure to inquire the image dpi value
might be suspect. It doesnt really work that way. Sounds like your
software inquiry is asking about the video system values instead about
of the image file.
When scanners scan an image, they do return the scanning dpi number so
the image can be reproduced same size when reprinted, if desired. There
are some ifs and buts, for example, this number is never saved in a GIF
file format, but is normally always saved in a TIF file format. In a
JPG file format, this number is saved in the optional EXIF tags. It is
possible to omit it in JPG (digital cameras normally do, and Adobe "Save
for Web" option always does, because the dpi number has no meaning in
those contexts). Scanners normally save it, and since one of your
programs sees this 200 dpi number, it obviously must have been saved in
the JPG file in your case. You can verify this by right clicking in the
Windows XP Explorer on the disk file name, then Properties, Summary,
Advanced. That is about the number in the JPG file.
The Windows GDI software procedures include a way to recall dpi numbers
from the video system. However, this NOT the image dpi from the file,
but instead this number is always the "font size" declared in your video
settings, 96 dpi normally, or 120 dpi if large fonts is set, etc. This
number has no actual meaning relating to the screen image. It's sort of
a long story, but see
http://www.scantips.com/no72dpi.html (way down the
page at Origin of the Myth, about "logical inches"). This 96 dpi value
is only about sizing fonts (which are dimensioned in inches) on the
video screen (which is dimensioned only in pixels). This number is NOT
about image files.
Bottom line, video screens are dimensioned in pixels, and digital images
are dimensioned in inches. Paper is the exception, being dimensioned in
inches, and so printing on paper needs dpi to size the image right. But
once you read your image into video memory, all you have is pixels.
The video screen has no concept of inches or dpi relating to images.
In video memory, the image is simply dimensioned in pixels. If the
reading software did not save the file dpi value somewhere, then it is
gone. And unneeded, because this dpi number is NEVER needed on the video
screen in any way. Any inches are only when printed on paper. But
screens are dimensioned only in pixels, and all the video software has
or needs is pixels.
Windows GDI does return the value 96 dpi or 120 dpi in those cases. This
96 dpi number is only about font size on the screen, and is your Font
Size setting. It is NOT about your JPG image.