[dokuwiki] Re: image resizing based on DPI

  • From: Tom N Harris <telliamed@xxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 15 Sep 2010 22:40:02 +0000

On 9/10/2010 9:12 PM, Michiel Kamermans wrote:

I'm currently using a custom plugin to resize on-page images so that
their screen dimensions match their print dimensions, by checking the
image files for their dpi value and determining what the pixel size
should be for a 72dpi device (which is 99% of all monitors).

Not any of my monitors. Most are 96dpi and for a while I used one at 110dpi. I'd assume that high DPI screens are more common these days. (Didn't Apple make a big deal about the resolution of new iPhones?) And this article (http://webkit.org/blog/57/css-units/) seems to suggest that 96dpi is the "standard" in browsers.

If you resize the images with CSS, then you can just use device independent units. "style='width:4in;height:2.5in'"

--
- tom
telliamed@xxxxxxxxxxxxx
--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: