[dokuwiki] Re: image resizing based on DPI

  • From: Michiel Kamermans <pomax@xxxxxxxxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 16 Sep 2010 01:54:01 -0700

On 9/15/2010 3:40 PM, Tom N Harris wrote:
If you resize the images with CSS, then you can just use device independent units. "style='width:4in;height:2.5in'"

Plugin code changed, new version available via the download link on http://www.dokuwiki.org/plugin:dpicorrect - it now sizes the image using a CSS style with width/height specified in inches, and has a few checks that ensure it doesn't try to set any width/height values for images for which it doesn't make sense to.

It won't fire for:

- GIF images,
- bad image links,
- JPG/PNG images that lack dimension information in their headers,
- JPG/PNG images with a unit '0', because it makes the dimensions meaningless, and - JPG/PNG images with either horizontal/vertical dimensions equal to '0' pixels per unit.

- Mike "Pomax" Kamermans
nihongoresources.com

--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: