[Templates] Image plugin (was: Modifying TT functions at run
time)
Mark Fowler
mark@twoshortplanks.com
Tue, 5 Nov 2002 13:44:54 +0000 (GMT)
On Tue, 5 Nov 2002, darren chamberlain wrote:
(I hadn't seen Image::Info before...oooh, shiny)
> * file extension (gif)
Image::Size does this as well, doesn't it? Anyway, it's not important.
As long as we get it from *somewhere* ;-)
> Patches against lib/Template/Plugin/Image.pm and t/image.t attached; comments?
a) If the two modules do the same thing, wouldn't it be nice to use either
or depending on which ones were installed?
b) What's the speed difference/memory useage of these things? Does
Image::Info use more resources when it's doing the checks?
c) Image::Info doesn't seem to mention anything about caching results,
which Image::Size does (to avoid reloading data each and every time a
bullet point is used for example.) Should we add that bit in the plugin?
Later.
Mark.
--
s'' Mark Fowler London.pm Bath.pm
http://www.twoshortplanks.com/ mark@twoshortplanks.com
';use Term'Cap;$t=Tgetent Term'Cap{};print$t->Tputs(cl);for$w(split/ +/
){for(0..30){$|=print$t->Tgoto(cm,$_,$y)." $w";select$k,$k,$k,.03}$y+=2}