Page 1 of 1

Do Screenshot and open Xnview

Posted: Fri Jul 14, 2023 10:56 am
by Timur
I take screenshots often, now after that I need to open Xnview to paste it.
Hiopefully there can be a parameter so that Xnvie takes screenshot and then this can be assigened to a shortcut key.
Like this: xnview -capture=screenshot.

Re: Do Screenshot and open Xnview

Posted: Fri Jul 14, 2023 12:57 pm
by xnview
you have already a -capture parameter

Re: Do Screenshot and open Xnview

Posted: Fri Jul 14, 2023 1:58 pm
by Timur
Sorry, I do not understand.
I saw -capture for window or desktop but not for taking and importing a screenshot.
xnview-capture just opens xnview, does not take screenshot.

Re: Do Screenshot and open Xnview

Posted: Sat Jul 15, 2023 5:44 am
by xnview

Code: Select all

xnview -capture=desktop
should make a screenshot

Re: Do Screenshot and open Xnview

Posted: Mon Jul 17, 2023 9:05 am
by Timur
xnview wrote: Sat Jul 15, 2023 5:44 am

Code: Select all

xnview -capture=desktop
should make a screenshot
Thank you @xnview but this does not work for me in Linux Mint 21.1 with Cinnamon, it just opens empty Xnview MP.
If XnView is already is running, command makes a screenshot but does not import into XnView.
I see that button inside Xnview is working, but that is not it: https://www.xnview.com/wiki/index.php/Capture.
It would be very useful if a single global command could start @XnView, make a screenshpt and import it into XnView.

Re: Do Screenshot and open Xnview

Posted: Sun Sep 03, 2023 6:28 am
by xnview
sorry but usage is

Code: Select all

xnview -capture=desktop,file.jpg

Re: Do Screenshot and open Xnview

Posted: Mon Sep 04, 2023 7:57 am
by Timur
xnview wrote: Sun Sep 03, 2023 6:28 am sorry but usage is

Code: Select all

xnview -capture=desktop,file.jpg
Thanks but this also does not work - and I corrected , to . Xn starts but no screenshot.

Re: Do Screenshot and open Xnview

Posted: Thu Nov 07, 2024 5:08 pm
by Timur
I still have the same question and need: how to take screenshot and open in XnView by using some keyboard shortcut?

Re: Do Screenshot and open Xnview

Posted: Mon Dec 16, 2024 8:00 am
by xnview
i've tried with 1.8.3, and it works correctly

Re: Do Screenshot and open Xnview

Posted: Mon Dec 16, 2024 9:35 am
by Timur
Previously I was using 1.5.0 Now I updated to 1.8.3. Installed from DEB in Linux Mint 21.3 Cinnamon (Ubuntu 22.04).
After `xnview -capture=desktop,file.jpg` in console I get:
`qt.qpa.clipboard: QXcbClipboard: Unable to receive an event from the clipboard manager in a reasonable time`
I see an old bug https://bugreports.qt.io/browse/QTBUG-56456 but not sure how it works then.