Page 1 of 1

How control initial view in OS X??

Posted: Fri Mar 04, 2005 7:45 pm
by dcortesi
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

Re: how control initial view in OS X??

Posted: Mon Mar 07, 2005 8:56 am
by xnview
dcortesi 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.
For window size & position, you can use -geometry for X11 server

Posted: Thu Mar 10, 2005 9:28 pm
by Guest
For window size & position, you can use -geometry for X11 server
I tried this and it had no effect, for example

Code: Select all

xnview -geometry 250x400+10+0 test.png
opened to the same window it uses when no geometry is specified, most of it is off the screen. Effectively the default geometry for this image is roughly 1600x800+400+400 and it doesn't change.

Note: when I do

Code: Select all

xnview -help
it says there is a parameter -ini <file>.

Please what is the format of this file? What commands can I put it it?

Thank you,

Dave Cortesi