in reply to Re^13: Tk:Photo -data with binary data?
in thread Tk:Photo -data with binary data?
returning to your 1/2 year ago attempt on pure tcl/tk attempt - "Image format png is not supported" - you just needpackage require Img
#!/usr/bin/wish package require Img set fdata [read [open "/test/colorcube.png"]] label .l1 -image [image create photo -format png -data $fdata] pack .l1
Results is a popup labelled "Error in startup script" containing the text
couldn't recognise image data while executing "image create photo -format png -data $fdata" invoked from within "labal,l1 -image [image create photo -format png -data $fdata]" (file c:\Tcl\test\test.tcl" line 4)
Which looks extremely similar to the problem I was having in OP of this thread. Namely, that it doesn't seem to be possible to pass image data in binary form using the -data option. Even when using Tcl directly.
It seems unlikely that if I ever get Tcl::Tk to install, that it would allow me to do this either.
All of which makes this whole Tcl/Tk subthread, and the time expended downloading and installing Tcl, a complete waste of time! Thanks.
And if that sounds ungrateful, it probably is. You see, I asked my question in the OP because I was trying to solve a particular problem. That problem remains unsolved.
I understand that as the author of Tcl/Tk, you are keen to promote it, but offering me a 'solution' that can never solve my problem is just a ****** *** ***** waste of my ****** time.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^15: Tk:Photo -data with binary data?
by vkon (Curate) on Jun 08, 2007 at 07:12 UTC | |
by BrowserUk (Patriarch) on Jun 08, 2007 at 07:27 UTC | |
by vkon (Curate) on Jun 08, 2007 at 08:42 UTC |