help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: imshow shows image twice


From: Geraint Paul Bevan
Subject: Re: imshow shows image twice
Date: Mon, 20 Oct 2003 01:12:25 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Josep Monés i Teixidor wrote:
|
| The problem seems to be that ImageMagick returns 1 when exiting, and I
| guess octave probably expects it to be 0 (EXIT_SUCCESS)       .
|

Josep,

I can't reproduce this, display (ImageMagick = 4:5.4.4.5-1woody1)
returns 0 when it exits for me. Are you using a different version? Is it
installed correctly or does it normally issue an error message when you
use it outside Octave?

A couple of possible workarounds could be to edit image.m, replacing

~  system (sprintf ("( %s || %s || %s && %s ) > /dev/null 2>&1 &",
~                   im_display, xv, xloadimage, rm));

with [*Untested*: Perhaps ppm file won't be removed!]

~  system (sprintf ("( %s || %s ) > /dev/null 2>&1 &", im_display, rm));


Alternatively, you could write a script to call display and exit with 0
and put it somewhere in your path before the real version, e.g.
[*Untested*, /usr/local/bin/display]
#!/bin/sh
/usr/bin/display $*
exit 0

- --
Geraint Bevan
http://homepage.ntlworld.com/geraint.bevan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAj+TfmEACgkQcXV3N50QmNP0VgCeKLzdA6j2DD6w6MaQn/gMVUgZ
gKYAniKqMur8eIicITEh7JAHj/ENvPxa
=5kDz
-----END PGP SIGNATURE-----



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]