From: "C. Dagnon" Date: 2009-05-18T21:59:33+09:00 Subject: Re: TkPhotoImage.copy always gives "too many colors" Error Yes, I am certainly willing to try :format, however I only have PERL examples and adding , :format => 'jpeg' to the end of both TkPhotoImage.new() calls ends up with the same error. I tried :jpeg and :jpg also, though for :jpg it says that format is not supported. I also tried all the permutations of adding :format between the 2 .new() calls and get the same error each time. I added a puts in tk/image.rb's write(), but that just shows that it is going to the correct filename with no options specified. I could try higher up in the stack (4 more methods) but they are all there just to call the Tk underbelly, right? Locally I see that /ruby/1.8/tkextlib/tkimg/jpeg.rb exists. I realize that this is the first time I've tried saving an image from Ruby/Tk, however given the focus of your comment should I assume that my code at least looks correct? So is the conclusion that the ActiveTcl implementation (the only one available for Windows, I've heard, a commercially dependant binary) has errors? Thanks, -Chris -- Posted via http://www.ruby-forum.com/.