Skip to content
Prev 19551 / 63424 Next

invalid graphics state using dev.print (fwd)

Prof Brian Ripley wrote:
<snipped>
<snipped>
There is a "standard" way of querying the X display directly about
the size each pixel supposedly represents - well, an X display can
be configured wrongly, etc, but you get what you ask for...

$ xdpyinfo |grep 'resolution'
   resolution:    75x75 dots per inch

(this 75x75 seems to be a default value as I did not set it anywhere,
but I believe it is configurable)

I am not sure about png files, but tiff files also have internal data
claiming x pixels corresponds to y inches. (and I am fairly sure jpeg
does *not* have this feature).

HTL