On Fri Feb 20 20:29:55 EST 2009, aku...@mail.nanosouffle.net wrote:

> Neither works for me.
> 
> term% hget http://9grid.es/screens/screen1.png|page
> reading through graphics...
> warning: couldn't read image: readimage: read count 32400 not 64800: screen 
> id in use
> 

you should also try running png directly from sources.
assuming that this does not work, ...

it seems that here:
/sys/src/libdraw/readimage.c:103

                m = readn(fd, tmp, n);
                if(m != n){
>>>                     werrstr("readimage: read count %d not %d: %r", m, n);
   Err:
                        if(dolock)
                                lockdisplay(d);

things are getting confused.  i think it would
be easier to debug if you added

        werrstr("");

right before the readn() and recompiled png.
i can't quite see how that error message could
result from reading an image.

- erik

Reply via email to