Page 1 of 1

Display images in sequence!!

Posted: 2007-03-07T05:14:45-07:00
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

Re: Display images in sequence!!

Posted: 2007-03-07T19:45:46-07:00
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.

Re: Display images in sequence!!

Posted: 2007-03-08T04:37:09-07:00
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.