From: Larry W. Virden on
On Jul 2, 7:59 am, keithv <kvet...(a)gmail.com> wrote:
> I'm having two big problems with the Img package, and was wondering if
> these are known bugs or problems with my installation.
>
> The first problem is that it won't display png images--they just show
> up blank.
>
> The second is trying to take screen snapshot with "-data $window".
> When I do, it's either blank or only about half the image.
>

I haven't tried taking a screen snapshot. However, I have found that I
have problems creating an image using the -data flag but if I use the -
file flag, it works for me.

From: Gerhard Reithofer on
Hi Keith,

On Fri, 9 Jul 2010, keithv wrote:
> On Jul 9, 11:13 am, Gerhard Reithofer <gerhard.reitho...(a)tech-
> edv.co.at> wrote:
> > Hi Keith and *,
> >
> > On Thu, 8 Jul 2010, Andreas Kupries wrote:
> > > keithv <kvet...(a)gmail.com> writes:
> >
> > > > I'm having two big problems with the Img package, and was wondering if
> > > > these are known bugs or problems with my installation.
> >
> > > > The first problem is that it won't display png images--they just show
> > > > up blank.
> >
> > this sounds like the behavior I saw and described in my
> > (huge!) ActiveTcl/Tablelist thread.
> >
> > Keith, could you please check if my test script (which I posted in my
> > last message) works in your environment?

...

> Yes, this fails for me also. Actually the image create doesn't
> throw an error, it just doesn't create the image.

yes, that's the strange behavior which occupied much of my time.

If you [catch] it it returns 1, errorCode is set to NONE, errorInfo
is set to "image create photo pngimg -data $imgdata(png)" (in my case) and
no image is created.

I've repeated it several times:
Install ActiveTcl - no error
teacup update - now the error is present

Tested on 32- and 64-bit Linux.

In my tests the png shared library was not changed, thus there will be a
combination of several libraries/files which fail.

> My work around, until I try Andreas solution, is that I installed
> pixane and a simple 'package require pixane' makes img::png work.
>
> Keith

--
Gerhard Reithofer
Tech-EDV Support Forum - http://support.tech-edv.co.at
From: Gerhard Reithofer on
Hi Larry,
thanks also to your answer in my other thread "ActiveTCL/Tablelist
broken".

On Fri, 9 Jul 2010, Larry W. Virden wrote:

> On Jul 2, 7:59 am, keithv <kvet...(a)gmail.com> wrote:
> > I'm having two big problems with the Img package, and was wondering if
> > these are known bugs or problems with my installation.
> >
> > The first problem is that it won't display png images--they just show
> > up blank.
> >
> > The second is trying to take screen snapshot with "-data $window".
> > When I do, it's either blank or only about half the image.
> >
>
> I haven't tried taking a screen snapshot. However, I have found that I
> have problems creating an image using the -data flag but if I use the -
> file flag, it works for me.

In the meantime I can reproduce the bug:
1. Install ActiveTcl new -> script works
2. Do a: teacup update -> script fails

As I always use the same test script, therfore I don't think that a data
error exists in my script (see case 1. above).

Also the flag "-file" always worked for me.

As the "teacup update" did not update img::png (at least the shared lib)
I'm unsure if it is a PNG-package problem (alone?).

--
Gerhard Reithofer
Tech-EDV Support Forum - http://support.tech-edv.co.at
From: Andreas Kupries on
Gerhard Reithofer <gerhard.reithofer(a)tech-edv.co.at> writes:

> Hi Larry,
> thanks also to your answer in my other thread "ActiveTCL/Tablelist
> broken".
>
> On Fri, 9 Jul 2010, Larry W. Virden wrote:
>
>> On Jul 2, 7:59 am, keithv <kvet...(a)gmail.com> wrote:
>> > I'm having two big problems with the Img package, and was wondering if
>> > these are known bugs or problems with my installation.
>> >
>> > The first problem is that it won't display png images--they just show
>> > up blank.
>> >
>> > The second is trying to take screen snapshot with "-data $window".
>> > When I do, it's either blank or only about half the image.
>> >
>>
>> I haven't tried taking a screen snapshot. However, I have found that I
>> have problems creating an image using the -data flag but if I use the -
>> file flag, it works for me.
>
> In the meantime I can reproduce the bug:
> 1. Install ActiveTcl new -> script works
> 2. Do a: teacup update -> script fails
>
> As I always use the same test script, therfore I don't think that a data
> error exists in my script (see case 1. above).
>
> Also the flag "-file" always worked for me.

> As the "teacup update" did not update img::png (at least the shared lib)
> I'm unsure if it is a PNG-package problem (alone?).

If the update renweded something like pngtcl, and/or zlibtcl, but not
img::png then this can be a mismatch there.

cc'd myself in the office now, to look into this monday morning
immediately.

Gerhard, can you send me your test script as well ?

--
So long,
Andreas Kupries <akupries(a)shaw.ca>
<http://www.purl.org/NET/akupries/>
Developer @ <http://www.activestate.com/>
-------------------------------------------------------------------------------
From: Gerhard Reithofer on
Hi all,
information for people which may detect the same problem.

On Fri, 9 Jul 2010, Andreas Kupries wrote:

> Gerhard Reithofer <gerhard.reithofer(a)tech-edv.co.at> writes:
>
> > Hi Larry,
> > thanks also to your answer in my other thread "ActiveTCL/Tablelist
> > broken".
> >
> > On Fri, 9 Jul 2010, Larry W. Virden wrote:
> >
> >> On Jul 2, 7:59 am, keithv <kvet...(a)gmail.com> wrote:
> >> > I'm having two big problems with the Img package, and was wondering if
> >> > these are known bugs or problems with my installation.

...

> > As the "teacup update" did not update img::png (at least the shared lib)
> > I'm unsure if it is a PNG-package problem (alone?).

With Andreas's help I found a workaround which worked for me on Windows
and Linux:
teacup install --force Img

made the tests running on my machines.

...

--
Gerhard Reithofer
Tech-EDV Support Forum - http://support.tech-edv.co.at