Limit display to single instance

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
porphyry5
Posts: 12
Joined: 2011-05-22T10:06:09-07:00
Authentication code: 8675308

Limit display to single instance

Post by porphyry5 »

Can't find anything in the Preferences about it, but is it possible to limit "display" to a single instance of itself, so that subsequent commands to display an image simply replace the existing image in the same window?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Limit display to single instance

Post by anthony »

Use -remote Please report any problems.

if no display is running one will start, otherwise it will pass the new image info to the already running display.

You can do the same thing with "animate" and this has been put into good effect in the scripts
http://www.imagemagick.org/Usage/script ... show_morph
http://www.imagemagick.org/Usage/scripts/slideshow_next

These programs takes pick two images (current and the next to display) from the input and sets up a fade animation. When that is finished it picks an new image and creates a new fade animation to the new image. It does this on the fly so that the next image animation is only calculated as needed.

The morph takes a list of images which it can randomise. The second takes just one image and reads from a file what the current image displayed is.

That are basically proof of concept. and works best with images that are the same size.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply