[pmwiki-users] automatically generate image width/height?

Lucian Wischik lu.gmane at wischik.com
Wed Dec 6 15:32:00 CST 2006


I wonder if it would be useful for pmwiki to inspect .gif/.jpg
images that it attaches, look at their headers, read their dimensions,
and use these dimensions to emit
  <img src="pic.gif" width=100 height=200>
for
  Attach:pic.gif

That way the web-client would get the benefit of correctly-sized
image placeholders, the wiki author would get the benefit of
not having to specify image sizes, and it'd only impose a little
extra burden on the webserver to read about 100 bytes per image.

Is such a thing already written? What do people think?

-- 
Lucian





More information about the pmwiki-users mailing list