suspend resume long job

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
teebe
Posts: 20
Joined: 2011-04-30T04:34:28-07:00
Authentication code: 8675308

suspend resume long job

Post by teebe »

By example, a montage long run can be suspended and resumed?
Or, at some scripting effort, which could be a soft quit with all job parameters saved and successive restart from same point?
Thanks
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: suspend resume long job

Post by anthony »

montage works on one image file at a time.

If you stop at any point you can restart by simply restarting the last incomplete image file task, and then continuing with the other images.

however if you want to formalize this you are better off scripting the montage into a looped batch job that gives montage a group of N images at a time. To stop, you would then signal the script to terminate the loop when the 'current batch' is finished, so it has a clean exit. To continue it would start with the next batch.

In this form it does not need to be montage, but for single images you can use convert, and gain far more operational controls such as the generation and composition of multiple images.

IMv7 will see a new variations on this that would allow even more, and finer image processing control, from scripts, or other languages (beyond command line runs) but that may be some time before it becomes available.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply