Re: [tcltk-perl] Package Img
Brought to you by:
hobbs
From: Paul F. <fa...@ca...> - 2004-08-31 15:32:03
|
On Tue, Aug 31, 2004 at 08:22:23AM -0700, Jeff Hobbs wrote: > Paul Falbe wrote: > > >I am now getting this error > > > >can't find package Img at /usr/lib/perl5/site_perl/5.8.3/Tcl/Tk.pm line > >704. > > > >I am trying to do the following > > > >$Photos{"Photo"} = $curfrm->Photo(-palette => 2, > > -width => $wdth, > > -height => $hght); > > The Img package is a Tcl extension. See http://tkimg.sourceforge.net/. > I dislike and disagree that this should be required for the Photo > method. You will find the need_tk('Img') call there, but that's not > really accurate, especially for what you have above, which is creating > a blank photo. Img is a Tcl extension that adds numerous graphicals > image formats (about a dozen more, including JPEG and PNG). If you can > live with the standard GIF and P*M support, you will never need Img. > IMO this requirement should be moved to a higher level. I could live with GIF but looks like like there is more to it than just commenting out that line. I guess I will install tkimg... |