From: "C. Dagnon" Date: 2009-05-20T00:35:34+09:00 Subject: Re: TkPhotoImage.copy always gives "too many colors" Error Thanks a lot, Hidetoshi! For anyone still following this thread the solution is: composite.write( 'filename.jpg', :format => :jpeg ) I had somehow assumed that we were dealing with objects, internal state and memory, but we're not. Even though I created the composite image with :format, Ruby/Tk only sends the immediate command to tk, so write() also needs the format parameter. I was additionally confused because the Perl/Tk book I have as a reference also has a table stating which image formats do not need format specified in the calls, and JPEG is one of those which doesn't - there at least. Next question is: how do I give Hidetoshi NAGAI a bump? Do we have any star ratings here? 8) Cryptic non-documented APIs (along with the code) seem to be Ruby's trademark :( RDoc rarely counts, unfortunately. -Chris -- Posted via http://www.ruby-forum.com/.