comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Pixels per Inch
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Pixels per Inch [message #37382 is a reply to message #37371] Mon, 15 December 2003 13:46 Go to previous messageGo to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Mon, 15 Dec 2003 13:20:08 -0700, Craig Markwardt wrote:


> JD Smith <jdsmith@as.arizona.edu> writes: [ ... ]
>> It depends on how many "inches" you intend to output the image to. This
>> is a basic and common mis-understanding of how image resolution works.
>> A bitmap image like a PNG file has a specific size in pixels, nxm say,
>> but does not have an associated "physical size". The
>
>
> JD, I'm not sure that's always true. I believe that TIFF images have an
> inherent (desired) dot pitch. Perhaps other formats do too, but PNGs
> definitely do not, so your comment is appropriate for the original
> poster.

Actually, PNG also has an optional header chunk called "pHYs" which gives
the pixels per meter. Other image formats have something similar. My
main point was that, no matter what you put in the header regarding the
"physical size" of the image, this is only a suggestion, and has no
bearing on the resolution or detail present in your image. Many programs
explicitly ignore these data (especially for on-screen display). You have
to separate the notion of resolution as "convenient suggestions for
printing and print layout programs" vs. resolution as real physical detail
present in the image.

The program pngcrush can add, change or remove the pHYs resolution
information from PNG files (http://pmt.sourceforge.net/pngcrush). But,
for example, if I take a PNG file and give it resolution 300dpi, 50dpi,
and no resolution, the three version display exactly the same in all
browsers, and the Gimp.

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TWINS
Next Topic: The Elements of IDL style

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 08:06:05 PDT 2025

Total time taken to generate the page: 0.00200 seconds