Display images in sequence!!

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
pkashrai

Display images in sequence!!

Post by pkashrai »

I have some .jpg images in one folder..I wanted to display all images sequencially with single command.I tried with command line:

Code: Select all

display  -delay 50  *.jpg
But I got the error message as:
display:unable to open X server '[No such file or directory]'
How can I display those images sequencially using command line!!
Any help will be appreciated!!

With Regards,
Prakash Rai
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Display images in sequence!!

Post by anthony »

First display will display the images in the order they are given to it.
As the *.jpg will expand to a alphabetical sorted listing, either via a command line shell or via the IM internal expandsion, then display will display them in the right order.

If the files are NOT alphabetical, but numerical.
EG 1.jpg ... 10.jpg ... 100.jpg
then you need to use other methods to specify the correct order.
See IM Examples, Image File Handling, Writing a Multi-Image Sequence
http://www.imagemagick.org/Usage/files/#write_seq
for a summery of some techniques in reading the files in the right order, or better still writing them in a form that is both numberical and alphabetic in order (prepended zeros).

You problem however is not image order, but that you are not running or have permissions setup to us a X window graphical display that is typically used under UNIX/Linux environments, and for which the display program was designed.

If you have an X window display see my very old notes on this problem..
http://www.cit.gu.edu.au/~anthony/info/X/Display.needs

If you are using a Windows, or Mac, I am sure others will be able to tell you what you can use.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
pkashrai

Re: Display images in sequence!!

Post by pkashrai »

I did solve the problem of displaying images in sequences accessing X window graphical display..
But What I wanted is:
I have some .jpg images in a folder in my local computer. I wanted to display that .jpg images sequentially using command line in my computer. For more information I am using:
OS : Windows XP
Version : ImageMagick 6.3.2
Any help will be appreciated. Thanks in advance !!

With Regards,
Prakash Rai.
Post Reply