Page 1 of 1

ImageMagic crash on windows 7

Posted: 2013-06-04T16:32:15-07:00
by emilywuq
ImageMagick crashes everytime when I run commands from windows cmd.exe. For example, the following commands:
display logo.gif -display :0
animate logo.gif -display :0
It can open the ImageMagick application without any problem. But when closing the application, a window error message pops up:
"imagemagick studio library and utility programs has stopped working x server"
The same commands do not crash in cygwin though.
Could anyone help me explain why this is happening, and help remove the error

Thanks

Re: ImageMagic crash on windows 7

Posted: 2013-06-04T16:38:34-07:00
by emilywuq
The same problem happen when I play with some program in Magic++_Demo.
For example, when I added the following line in gravity.cpp
system( "animate gravity_out.miff -display :0" );
or added the below line in buton.cpp:
system( "display button_out.miff -display :0" );

I was adding those lines so that I can see the generated results on screen right way. But the same problem happen when I tried to close the application.

emilywuq wrote:ImageMagick crashes everytime when I run commands from windows cmd.exe. For example, the following commands:
display logo.gif -display :0
animate logo.gif -display :0
It can open the ImageMagick application without any problem. But when closing the application, a window error message pops up:
"imagemagick studio library and utility programs has stopped working x server"
The same commands do not crash in cygwin though.
Could anyone help me explain why this is happening, and help remove the error

Thanks

Re: ImageMagic crash on windows 7

Posted: 2013-06-04T17:44:39-07:00
by fmw42
I believe that display and animate are unix only command for IM. If you are on windows and not Cygwin, I think there is some other command for looking at images. (I am not a Windows user but it something like IM_display)

see
http://www.imagemagick.org/script/display.php
http://www.imagemagick.org/Usage/windows/

I do not see where you say what version of IM you are using?

Re: ImageMagic crash on windows 7

Posted: 2013-06-04T20:39:38-07:00
by emilywuq
fmw42 wrote:I believe that display and animate are unix only command for IM. If you are on windows and not Cygwin, I think there is some other command for looking at images. (I am not a Windows user but it something like IM_display)

see
http://www.imagemagick.org/script/display.php
http://www.imagemagick.org/Usage/windows/

I do not see where you say what version of IM you are using?
i am using the lastest version ImageMagick-6.8.5-9-Q16-x86-dll.exe

Re: ImageMagic crash on windows 7

Posted: 2013-06-04T20:54:52-07:00
by fmw42
Just to be clear, in case of any confusion, but display and animate are Unix IM commands only. They do not work on Windows

Re: ImageMagic crash on windows 7

Posted: 2013-06-05T04:00:03-07:00
by whugemann
I think this issue was already treated in viewtopic.php?f=3&t=22956. Basically, Windows will automatically run the application associated with the file format specified. If you are working on image manipulation, IrfanView will probably be installed on your computer an associated with all image file formats. Thus it suffices to just specify the image file in a cmd box and the associated application will be run automatically and display the image.

Re: ImageMagic crash on windows 7

Posted: 2013-06-05T04:29:24-07:00
by snibgo
I'll add that "display" and "animate" need X11, which MS Windows doesn't have. (Maybe it can be added; I don't know.)

The equivalent to "display" under Windows is "imdisplay", which works fine. Personally, I use MS Photo Viewer for most purposes, or Gimp for getting pixel values.