From: Albert L. <a.l...@ve...> - 2001-09-10 19:20:24
|
I use a simple clear image trick that works great when wrestling with tricky table configurations. I like the idea of manipulating image sizes easily, but was a little lost in your description there. Alby > Is anyone interested in an ImageRequestManager which would use a static > embed tag like the module embeds: > > <bc:image id="SomeImageID" /> > > the reason I thought of doing this: > -if people use this 'embed' tag, the make system can use a central image > info repository to build well-formed tags that include alts, the _real_ > width and height of an image, etc. Of course we could allow overrides: > > <bc:image id="SomeImageID" alt="Some Other Alt You want" width="20" /> > > but in general you'd just use the simple tag. > > I can imagine that being convenient for me... would it be convenient for > anyone else? > > The xml would probably look like: > > <!-- binarycloud image repository example file --> > <!-- > used in conjunction with: > <bc:image id="SomeImageID" /> > --> > <images> > <image> > <!-- > This ID is used by the make system. Required. > --> > <id>bcFire</id> > <!-- > The image source. We could set a constant called > BC_PATH_IMAGES or something that would allow make > to know that it should prepend that value to all > image paths > --> > <src>resources/images/binarycloud/tmpl/fire.jpg</src> > <!-- > The value of the 'name' attribute in the img tag > --> > <name>ImageName</name> > <!-- > The alt attribute. Note the language reference > --> > <alt:en>binarycloud fire</alt:en> > <!-- > The 'align' attribute in the img tag > --> > <align>left</align> > > <hspace>10</hspace> > <vspace>10</vspace> > <!-- > If left undefined, this is assumed to be 0 > --> > <border>0</border> > <usemap>#moo</usemap> > <!-- > only specify these if you want to override the make system's > automatic image-checking features > --> > <width>400</width> > <height>20</height> > </image> > </images> > > Of course the other possibility is to turn this into an Entity, and run > image makes from the database... hehehe > > best, > > _alex > |