How control initial view in OS X??

Questions, suggestions, and answers for XnView on MacOS X

Moderators: XnTriq, xnview

dcortesi

How control initial view in OS X??

Post 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
User avatar
xnview
Author of XnView
Posts: 36286
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: how control initial view in OS X??

Post 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
Pierre.
Guest

Post 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