[magick-users] How to avoid blocking IM displayPerlMagick/ActivePerl/Win32

Scott Spearman scott.spearman at pikevillehospital.org
Tue Sep 25 08:59:03 PDT 2007


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 at pikevillehospital.org

(606) 218-4660

-----Original Message-----
From: magick-users-bounces at imagemagick.org
[mailto:magick-users-bounces at imagemagick.org] On Behalf Of Mark Knoop
Sent: Tuesday, September 25, 2007 9:46 AM
To: magick-users at 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 at imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-users



More information about the Magick-users mailing list