From: Charles Hixson Date: 2005-06-02T06:42:25+09:00 Subject: Re: tk image problem Hidetoshi NAGAI wrote: >From: Charles Hixson >Subject: tk image problem >Date: Wed, 1 Jun 2005 10:41:50 +0900 >Message-ID: <429D11DA.4010906@earthlink.net> > > >>When I attempt to read in xpm files created by the Gimp, I get >>"/usr/lib/ruby/1.8/tk.rb:2020:in `__invoke': couldn't recognize data in >>image file " errors. If it's a gif file, the program works without at >>hitch. >> >> > >man n photo ;-) >Standard Tk library supports PPM/PGM/GIF on photo images. >If you want to treat XPM on Ruby/Tk, please use Tcl/Tk's Img extension. >It adds supports for BMP/JPEG/PNG/XBM/XPM and so on. > > That sounds like you know the right answer...but I don't understand it. Can you point to any documentation of Tcl/Tk's Img extension? Google produced some links, but they seem to be implying that this won't work on a vanilla installation. (I'm not really certain, as they were really talking about something else...but that's what it sounded like.) If this is correct, then I guess I must convert all of my images to gif files. (This isn't horrendous, but I prefer that the images be something I can look at with a text editor.)