[dokuwiki] dokuwiki and print quality images

  • From: Michiel Kamermans <pomax@xxxxxxxxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Fri, 16 Oct 2009 03:05:39 -0700

Hi all,

I was wondering whether someone knew what the best way is to make dokuwiki serve up images with dimensions that reflect their "real" size, rather than their pixel size. All the images I need to put online are print quality images, at 300 dpi, but that also makes them about four times the pixel size, so they're massively huge.

I was thinking about checking the final xhtml for image elements, running the images in them through gd for their dimension properties, and then rewriting the image elements so that they have corrected width and height attributes, but that's also pretty costly... is there a hook earlier that lets one adjust only generated image elements?

- Mike "Pomax" Kamermans
nihongoresources.com
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: