# Ruby TK and loading PNGs

**URL:** <https://www.ruby-forum.com/t/ruby-tk-and-loading-pngs/73326>\
**Category:** Ruby\
**Created:** [February 26, 2006, 3:18am UTC](https://www.ruby-forum.com/t/ruby-tk-and-loading-pngs/73326 "2006-02-26T03:18:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![austin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/77aa72/32.png) [@austin](https://www.ruby-forum.com/u/austin)\
**Post date:** [February 26, 2006, 3:18am UTC](https://www.ruby-forum.com/t/ruby-tk-and-loading-pngs/73326/1 "2006-02-26T03:18:49Z")

</div>

Is there anyway to load PNG files with TK?

---

<div class="post-metadata">

**Author:** ![austin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/77aa72/32.png) [@austin](https://www.ruby-forum.com/u/austin)\
**Post date:** [February 26, 2006, 5:50am UTC](https://www.ruby-forum.com/t/ruby-tk-and-loading-pngs/73326/2 "2006-02-26T05:50:39Z")

</div>

From: Austin [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Ruby TK and loading PNGs  
Date: Sun, 26 Feb 2006 11:19:05 +0900  
Message-ID: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> Is there anyway to load PNG files with TK?

Please use ‘TkImg’ extension ([tkImg download | SourceForge.net](http://sf.net/projects/tkimg)).  
ActiveTcl binary packages includes the extension.  
When the extension is available on your Tcl/Tk,  
plaese call “require ‘tkextlib/tkimg’” to use on your Ruby/Tk.

# see also “ext/tk/sample/tkextlib/tkimg/demo.rb” on the Ruby source

tree.
