[Templates] Image plugin (was: Modifying TT functions at run time)

Randal L. Schwartz merlyn@stonehenge.com
05 Nov 2002 06:58:11 -0800


>>>>> "Mark" == Mark Fowler <mark@twoshortplanks.com> writes:

Mark> Indeed, but it'd be stupidly slow compared to Image::Size.  Image::Size 
Mark> doens't actually load in the image...it just peaks inside the headers of 
Mark> the file and pulls out the info from there.  Unless of course it doesn't 
Mark> understand the image format, in which case *it* uses Image::Magick do the 
Mark> job.

And Image::Magick's "ping" operation also grabs "just enough" of the
image to figure out what it is as well.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!