> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Namens Michiel Meeuwissen
> Verzonden: vrijdag 23 april 2004 14:43
> Aan: [EMAIL PROTECTED]
> Onderwerp: Re: Image width and height
>
>
> Robin van Meteren <[EMAIL PROTECTED]> wrote:
> > >
> > The width and height are determined from the byte array in
> the handle
> > field from the image itself. I am not sure but I think the
> byte array
> > for the icache-node is stored in a different node. This node should
> > than be first retrieved.
>
> I would propose a new 'function' 'cachenode' on images for
> that, or perhaps the 'cache' function already works (but I
> think that now give only a number, while you want an actual node).
>
> <mm:functioncontainer>
> <mm:param name="template">s(100x100)</mm:param>
> <mm:nodefunction name="cachenode">
> <img src="<mm:image />" height="<mm:function name="height" />" />
> </mm:nodefunction>
> </mm:functioncontainer>
>
> The 'height' and 'width' functions should then be implemented
> on 'AbstractImages' becasue they must be availabe for both
> images and icaches.
>
> > > itself. Perhaps as an optional plugin (<property
> > > name="imageinfoclass" or so).
> > >
> > > Michiel
> > >
> > That would be nice.
>
> Do you know the author of this ImageInfo class? Things would
> get easier to maintain if we could simple add a copy to mmbase.jar.
It's public domain, so a copy can be added. See the page
http://www.geocities.com/marcoschmidt.geo/image-info.html for further
info about this and the author.