[pmwiki-users] Images: width and height attributes

Tegan Dowling tmdowling at gmail.com
Thu Oct 19 13:27:59 CDT 2006

On 10/19/06, Mike <mike at widowitz.com> wrote:
> Patrick R. Michaud wrote on 19.10.2006 16:21:
> > On Thu, Oct 19, 2006 at 03:56:04PM +0200, Mike wrote:
> >> Hello,
> >> for images which I want to simply display "as they are", i.e. without
> >> any resizing etc., it would be very convenient if PmWiki would generate
> >> HTML code that includes the "height" and "width" attribute in the HTML
> >> <img> tag. Reason is that on pages with many images that take a while to
> >> load, images without these attributes will reserve no space which causes
> >> the whole text to change every time when a new images is loaded.
> >>
> >> I know I could specify this information with %width% etc., but actually
> >> I'm looking for an automatic way of doing this...
> >
> > Many times (most?) PmWiki doesn't have direct access to the
> > image file to be able to determine its width and height -- i.e.,
> > PmWiki would have to perform an HTTP request to the remote server to
> > fetch the image and determine the width and height attribute
> > values to use in the <img .../> tag.  I didn't want to impose
> > that overhead on the server(s) or introduce any more delays
> > to processing the page.
> >
> > The one exception to this might be image attachments, where
> > PmWiki does have direct access to the image file and therefore
> > could potentially automatically determine width and height
> > values for the image tag.  But since that means creating and
> > maintaining a new set of image-tag-handling-functions, I've
> > gone with PmWikiPhilosophy #3 (avoid gratuitous features)
> > until there's enough demand/demonstrated need for it.
> >
> > Pm
> Fair enough. Thanks.
But Mike, you could create a PITS for it -- that way the idea doesn't
get lost.  Someone may come along and decide to tackle it, OR there
may actually be pent-up demand for it, which votes on the PITS page
could demonstrate.

More information about the pmwiki-users mailing list