Re: [Templates] Image plugin won't retrieve size of SWF
[prev]
[thread]
[next]
[Date index for 2004/07/16]
Bruce McKenzie wrote:
> <>I can get the size of a Flash movie with Image::Size, but not with the
> Image plugin.
> I'm using ActiveState Perl w/ WinXP Pro. The plugin works ok on gifs and
> jpgs. Image::Info is installed.
>
Image::Info is used preferentially, blindly. The plugin simply hands
Image::Info the file and it can't do .swf files. Your options are:
1. uninstall Image::Info and live without it (if you can).
2. rewrite the Image plugin to attempt Image::Size if Image::Info fails
3. patch Image::Info to do .swf and send it to Gisle for inclusion.
The first is the easiest, the second is cool but wonky, the third is the
"Right Thing"(tm) IMHO.
The swf sizing code in Image::Size has no checks for file type, BTW, it
just blindly reads bits and bytes. It might take a bit of research to
get it up to snuff for Image::Info.
--mark mills
Xodiax Engineering
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates
 |
 |
Re: [Templates] Image plugin won't retrieve size of SWF
Mark Mills 17:47 on 16 Jul 2004
|