Hidetoshi NAGAI
5/19/2009 1:07:00 AM
From: "C. Dagnon" <c-soc-rubyforum@dagnon.net>
Subject: Re: TkPhotoImage.copy always gives "too many colors" Error
Date: Tue, 19 May 2009 08:25:11 +0900
Message-ID: <9325753129afd85e3cb4fb9ed9cab049@ruby-forum.com>
> I tried a separate JPEG from a camera which displays correctly with
> other programs as a straight copy and got the same errors.
Could you send me the image files which make errors?
I cannot investigate the trouble, because I cannot re-generate it.
Although I'm not an expert enough to check image formats,
I need samples to make the same error at least.
> I also tried it on a Mac OS X 10.4.11 and again had the same GIF "too
> many colors" error. That would mean it is some problem in the Ruby-Tk
> wrapper, correct?
I think that the method which make the error calls a Tcl/Tk function
only. And the error message is made at the Tcl/Tk function.
If you can write a Tcl/Tk script, please execute the same operation
for the images. Of course, your "wish" command uses the same Tcl/Tk
libraries (libtcl.so and libtk.so) with Ruby's tcltklib.so.
If it makes the same error, your trouble depends on your Tcl/Tk and/or
your environment. But if not, the trouble possibly depends on Ruby/Tk.
# Is your window system's color depth larger than 8bit ?
--
Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)