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

The Editor editor at fast.st
Wed Dec 6 16:08:18 CST 2006


On 12/6/06, Lucian Wischik <lu.gmane at wischik.com> wrote:
> 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



Don't know if it's already been done, but I think it's a great idea!
That's one thing I didn't like about moodle and some other systems I
used.  The display seemed to jump around, reshaping itself as more and
more of the page content loaded. Yuck!

Don't have that problem so much with PmWiki because I have more
control over the skin...  But the idea is the same.

Cheers,
Caveman




More information about the pmwiki-users mailing list