Displaying images from a folder as they are created, How?
Posted: 2007-08-14T10:26:00-07:00
Hi guys. I have a simulation application that spits out images every couple seconds and I need to render them on the screen as the application spits them out. The problem I have is that the pictures arn't created every 2 seconds or some finite interval; The program needs to perform certain calculations before the image is rendered and written to the file. The interval between image writes may be dynamic, but it is in the order or seconds. In the best case, I would like to detect when the file is created (i can do this within the shell script, ImageMagick need not have this functionality) and display the image in a window immediately after.
My problem is that I'm not sure what the best way to do this would be. When I execute the command "display test1.ppm", the image in indeed displayed, but the program keeps running in the foreground and I am unable to execute "display test2.ppm" until I manually exit the first instance of ImageMagick. Is there anyway around this? to set the renderer to run in the background maybe so I have the shell command prompt available to overwrite the window I want to render the next image in?
I know ImageMagick can handle sequences of images, or slideshows. But from what I understand they require a static delay n between the images, which I can't do. I need to be able to run the "display" command when the shell script detects the image has been created and render it to a specific window.
any suggestions?
My problem is that I'm not sure what the best way to do this would be. When I execute the command "display test1.ppm", the image in indeed displayed, but the program keeps running in the foreground and I am unable to execute "display test2.ppm" until I manually exit the first instance of ImageMagick. Is there anyway around this? to set the renderer to run in the background maybe so I have the shell command prompt available to overwrite the window I want to render the next image in?
I know ImageMagick can handle sequences of images, or slideshows. But from what I understand they require a static delay n between the images, which I can't do. I need to be able to run the "display" command when the shell script detects the image has been created and render it to a specific window.
any suggestions?