[prev in list] [next in list] [prev in thread] [next in thread] 

List:       imagemagick-user
Subject:    RE: [magick-users] How to avoid blocking IM
From:       "Scott Spearman" <scott.spearman () pikevillehospital ! org>
Date:       2007-09-25 15:59:03
Message-ID: 002a01c7ff8c$fec583d0$200214ac () pikevillehospital ! org
[Download RAW message or body]

I believe you'll want to fork (start a new process) for your display.  You
can then issue a kill to it when you're ready to move on.  You could
probably do the same thing with threads, too.

There may be better ways, but that's the first that comes to mind.

Scott Spearman

 

Programmer Analyst - Pikeville Medical Center

Scott.Spearman@pikevillehospital.org

(606) 218-4660

-----Original Message-----
From: magick-users-bounces@imagemagick.org
[mailto:magick-users-bounces@imagemagick.org] On Behalf Of Mark Knoop
Sent: Tuesday, September 25, 2007 9:46 AM
To: magick-users@imagemagick.org
Subject: [magick-users] How to avoid blocking IM
displayPerlMagick/ActivePerl/Win32

Hi

I'm new to Image::Magick.

I have a perl script which displays an image and requires some user input
from the command line.

I would like to leave the image displayed while getting the input but the
script is hanging once the image is displayed and does not continue until I
close the window.

I have tried using

$image->Write('win:');

and

system("imdisplay $path");

but both seem to block.

Any ideas?

Secondly if there is a way of leaving the display open while continuing with
the script is there a way of closing the display programmatically later on?

Many thanks
Mark


_______________________________________________
Magick-users mailing list
Magick-users@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-users

_______________________________________________
Magick-users mailing list
Magick-users@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic