image viewer that refreshes?

2003-03-11 Thread Benjamin Rutt
I have a .jpg image that keeps changing (from a webcam).  Is there an
image viewer in debian's packages that will display the image and
automatically refresh the image when it has changed?  I've already
tried gqview, xli and display, and qiv.  ('display -update 1' doesn't
update as advertised).  Thanks,
-- 
Benjamin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: image viewer that refreshes?

2003-03-11 Thread Gregory Seidman
Benjamin Rutt sez:
} I have a .jpg image that keeps changing (from a webcam).  Is there an
} image viewer in debian's packages that will display the image and
} automatically refresh the image when it has changed?  I've already
} tried gqview, xli and display, and qiv.  ('display -update 1' doesn't
} update as advertised).

Let us assume that your image is the free JenniCam, which updates every 20
minutes, and that you have a cron job or some other process doing the
downloading:

#!/bin/sh

WATCHIMG=/tmp/jennicam.jpg

display -immutable $WATCHIMG 
while true
do
sleep 1200
display -remote $WATCHIMG
done

} Thanks,
} Benjamin
--Greg


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: image viewer that refreshes?

2003-03-11 Thread Benjamin Rutt
Gregory Seidman [EMAIL PROTECTED] writes:

 Let us assume that your image is the free JenniCam, which updates every 20
 minutes, and that you have a cron job or some other process doing the
 downloading:

 #!/bin/sh

 WATCHIMG=/tmp/jennicam.jpg

 display -immutable $WATCHIMG 
 while true
 do
   sleep 1200
   display -remote $WATCHIMG
 done

FYI, I actually found that I needed to issue the initial display
*without* the -immutable flag (otherwise, the -remote command would
make the original display process terminate).  After that, it worked
great though, thanks for the tip.
-- 
Benjamin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: image viewer that refreshes?

2003-03-11 Thread Ron Johnson
On Tue, 2003-03-11 at 09:24, Gregory Seidman wrote:
 Benjamin Rutt sez:
 } I have a .jpg image that keeps changing (from a webcam).  Is there an
 } image viewer in debian's packages that will display the image and
 } automatically refresh the image when it has changed?  I've already
 } tried gqview, xli and display, and qiv.  ('display -update 1' doesn't
 } update as advertised).
 
 Let us assume that your image is the free JenniCam, which updates every 20
 minutes, and that you have a cron job or some other process doing the
 downloading:
 
 #!/bin/sh
 
 WATCHIMG=/tmp/jennicam.jpg
 
 display -immutable $WATCHIMG 
 while true
 do
   sleep 1200
   display -remote $WATCHIMG
 done

What, in this case, is a remote operation?

-- 
+---+
| Ron Johnson, Jr.mailto:[EMAIL PROTECTED]  |
| Jefferson, LA  USA  http://members.cox.net/ron.l.johnson  |
|   |
| Spit in one hand, and wish for peace in the other.|
| Guess which is more effective...  |
+---+


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: image viewer that refreshes?

2003-03-11 Thread Matthew Weier O'Phinney
-- Ron Johnson [EMAIL PROTECTED] wrote
(on Tuesday, 11 March 2003, 12:09 PM -0600):
 On Tue, 2003-03-11 at 09:24, Gregory Seidman wrote:
  Benjamin Rutt sez:
  } I have a .jpg image that keeps changing (from a webcam).  Is there an
  } image viewer in debian's packages that will display the image and
  } automatically refresh the image when it has changed? 
  
  Let us assume that your image is the free JenniCam, which updates every 20
  minutes, and that you have a cron job or some other process doing the
  downloading:
  
  #!/bin/sh
  WATCHIMG=/tmp/jennicam.jpg
  
  display -immutable $WATCHIMG 
  while true
  do
  sleep 1200
  display -remote $WATCHIMG
  done
 
 What, in this case, is a remote operation?

I haven't used this, but I have used a number of other applications that
work like this. Basically, giving 'display' the option '-immutable' and
throwing it into the background makes display sorta kinda act like a
server of sorts -- commands can be given to it. Which is where '-remote'
comes in -- it's saying to 'display' to look for an already running
instance of 'display' and then to change the image being used.

Mozilla has similar operations that can be used to reload/load a new
page in an existing window, or to use an already running process to open
a new window/tab.

(For the OP - had you considered loading the image in
Mozilla/Galeon/Opera/Phoenix... and setting an autoreload on it, either
via the tab/window preferences or using mozilla-remote?)

-- 
Matthew Weier O'Phinney
[EMAIL PROTECTED]
http://matthew.weierophinney.net


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: image viewer that refreshes?

2003-03-11 Thread Benjamin Rutt
Matthew Weier O'Phinney [EMAIL PROTECTED] writes:

 I haven't used this, but I have used a number of other applications
 that work like this. Basically, giving 'display' the option
 '-immutable' and throwing it into the background makes display sorta
 kinda act like a server of sorts -- commands can be given to
 it. Which is where '-remote' comes in -- it's saying to 'display' to
 look for an already running instance of 'display' and then to change
 the image being used.

Looks correct, although in my case, using -immutable for the first
invocation of display causes later -remote invocations to close the
original window.  So, for me, the above paragraph is true, minus the
'-immutable' option.

 (For the OP - had you considered loading the image in
 Mozilla/Galeon/Opera/Phoenix... and setting an autoreload on it, either
 via the tab/window preferences or using mozilla-remote?)

Yes, that wouldn't be bad...unfortunately I can't keep a browser
running for very long usually.  My X server is often a thin-client
xterm, and for some reason browsers keep dying with the following
types of errors:

X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  53 (X_CreatePixmap)
  Serial number of failed request:  14366
  Current serial number in output stream:  14517
X Error of failed request:  BadGC (invalid GC parameter)
  Major opcode of failed request:  57 (X_CopyGC)
  Resource id in failed request:  0x2c0074d
  Serial number of failed request:  14448
  Current serial number in output stream:  14521

Maybe it's a colormap issue, but I'm clueless.
-- 
Benjamin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: image viewer that refreshes?

2003-03-11 Thread Michael Wardle
On Wednesday, March 12, 2003 01:48, Benjamin Rutt wrote:
 I have a .jpg image that keeps changing (from a webcam).  Is there an
 image viewer in debian's packages that will display the image and
 automatically refresh the image when it has changed?

I think both gThumb and kuickshow use the file monitoring features of FAM, so 
either should automatically refresh when the file changes.

Hope this helps

-- 
Michael Wardle
Adacel Technologies



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]