Under OS X I need to call XnView from a script to display a .png image.
I must have it come up at a certain window size -- and a certain zoom percent -- and if possible, at a specified position on the screen.
How can I invoke XnView to come up with (for example) a window size of 600x900 pixels, and the image zoomed to 45%?
How can I make it put the window at a specified place -- OR -- how can I tell it to come up at the SAME place where it was last CLOSED?
If one cannot do these things, please tell me, so I can find another viewer to use.
Thank you,
Dave Cortesi
How control initial view in OS X??
Moderators: XnTriq, helmut, xnview
-
- Author of XnView
- Posts: 44930
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: how control initial view in OS X??
For window size & position, you can use -geometry for X11 serverdcortesi wrote:Under OS X I need to call XnView from a script to display a .png image.
I must have it come up at a certain window size -- and a certain zoom percent -- and if possible, at a specified position on the screen.
How can I invoke XnView to come up with (for example) a window size of 600x900 pixels, and the image zoomed to 45%?
How can I make it put the window at a specified place -- OR -- how can I tell it to come up at the SAME place where it was last CLOSED?
If one cannot do these things, please tell me, so I can find another viewer to use.
Pierre.
I tried this and it had no effect, for exampleFor window size & position, you can use -geometry for X11 server
Code: Select all
xnview -geometry 250x400+10+0 test.png
Note: when I do
Code: Select all
xnview -help
Please what is the format of this file? What commands can I put it it?
Thank you,
Dave Cortesi