From: Hidetoshi NAGAI Date: 2009-01-23T01:58:07+09:00 Subject: Re: Tk supports only GIF? From: Albert Schlef Subject: Tk supports only GIF? Date: Thu, 22 Jan 2009 21:58:54 +0900 Message-ID: <2b90a2596885e3d7547061766483c3ea@ruby-forum.com> > I'm using Ubuntu. > > Doesn't Tk support JPGs and PNGs out of the box? If you talk about standard Tcl/Tk only, the answer is "YES" (see "man n photo"). To support JPEGs, PNGs, and so on, Tcl/Tk needs "Img" extension. # Possibly, ubuntu package name is "libtk-img". When your Tcl/Tk has "Img" extension, Ruby/Tk also supports it. Please call "require 'tkextlib/tkimg'", and you can use JPEGs and PNGs on your Ruby/Tk. -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)