Queue multiple processes?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
gsprague

Queue multiple processes?

Post by gsprague »

Hello All,

Does Imagemagick have any type of built-in queue? This way I can run 1 process at a time rather than having multiple processes running at once crashing my server.

Thank you!
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Queue multiple processes?

Post by anthony »

IM is a application, and while it now have multi-processor handling for its algorithms it does not have any queuing mechinism.

Of course that does not stop you from using a shell wrapper to call multiple convert commands, starting a new one as older ones finish.

--------------

On aspect I am hoping to work on in IM version 7 development, is a single pass pipelined version of convert. That is a 'convert' (or whatever it will be called, whcih can read commands from a pipeline.

What this will allow, is for direct (no shell) IM scripts.

But it will also allow for the possibility of a 'daemon child' process.
controlled by a parent process.

The 'daemon' processing command will never need to exit, but can receive new jobs (image command settings and operations)
and executes them immediately they have been received. The parent process can then get the daemon to read, process and write images, completely under that parent process control, which the parent process decides what the next step will be.

This 'daemon' technique will remove the need for multiple IM commands, startup and stoping configuration times, interfering shell parsing, and should work well with API's and more complex image processing tasks (such as photo album handling).


See the text file notes on my proposed changes.
http://www.imagemagick.org/Usage/bugs/I ... ations.txt
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply