From: Hidetoshi NAGAI Date: 2005-06-01T14:40:17+09:00 Subject: Re: tk image problem 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. -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)