Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images passed as command line arguments are never shown #89

Closed
ctrueden opened this issue Sep 9, 2014 · 2 comments
Closed

Images passed as command line arguments are never shown #89

ctrueden opened this issue Sep 9, 2014 · 2 comments
Assignees
Labels
Milestone

Comments

@ctrueden
Copy link
Member

ctrueden commented Sep 9, 2014

From Thorsten Wagner on the ImageJ mailing list:

The command

imagej /home/thorsten/data.jpg

opens the image data.jpg.

However, when I use fiji, the command

./ImageJ-linux64 /home/thorsten/data.jpg

does nothing.

The issue is: while the ImagePlus gets created and populated, it never appears on screen because the ImageJ 1.x main window has not yet been shown. This is a consequence of ImageJ2 processing command line arguments before displaying the user interface.

There are probably several viable ways to work around this problem.

@ctrueden
Copy link
Member Author

Until this bug is fixed, one way to work around this issue is to use the --open flag; e.g.:

./ImageJ-linux64 --open /home/thorsten/data.jpg

@ctrueden
Copy link
Member Author

Indeed, I cannot reproduce this bug anymore. The commit that probably fixed it for --open (assuming it was even broken) is scijava/scijava-common@c53149e. The behavior when passing the filename directly is different, and handled by ImageJ 1.x, but the image did appear in my tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants