Page 1 of 1

Copy and paste selection issues in image view, clipboard is to blame?

Posted: Fri Apr 19, 2019 7:57 pm
by warmaker
I am having a hard time copying and pasting parts/selection of image in view mode with XnViewMP (which I just installed after YEARS of using XnView Classic). It does work SOMETIMES (the FAILED positions), but I can't figure out under what conditions exactly.

Software I used:
- XnView Classic v2.48 (Mar 2 2019)
- XnViewMP Version 0.93.1 64bits (Mar 6 2019)
- Paint 1803 (OS Build 17134.706)
- Gimp 2.10.10
- Windows 10 Enterprise

And now...
Copying from ---> Copying to: RESULT. Remarks.

XnView Classic ---> XnView Classic: OK
XnView Classic ---> XnViewMP: FAILED (nothing happens). However, it is possible to "Import clipboard" (Ctrl+Shift+V).
XnView Classic ---> Paint: OK
XnView Classic ---> Gimp: OK
Gimp ---> XnView Classic: OK
Paint ---> XnView Classic: OK

XnViewMP (Ctrl+C) ---> XnViewMP: OK
XnViewMP (Ctrl+C) ---> XnView Classic: OK
XnViewMP (Ctrl+C) ---> Paint: OK
XnViewMP (Ctrl+C) ---> Gimp: FAILED (GIMP Message: There is no image data in the clipboard to paste)

XnViewMP (Ctrl+Shift+C) ---> XnViewMP: FAILED (nothing happens). However, it is possible to "Import clipboard" (Ctrl+Shift+V).
XnViewMP (Ctrl+Shift+C) ---> XnView Classic: OK
XnViewMP (Ctrl+Shift+C) ---> Paint: OK
XnViewMP (Ctrl+Shift+C) ---> Gimp: FAILED (GIMP Message: There is no image data in the clipboard to paste)

Paint ---> XnViewMP: FAILED (Nothing happens). However, it is possible to "Import clipboard" (Ctrl+Shift+V).
Gimp ---> XnViewMP: FAILED (Nothing happens). However, it is possible to "Import clipboard" (Ctrl+Shift+V).

I found out that there are different sets of data being copied to the clipboard from different programs. Please, see attached screenshots. Attachment/file name says which program this clipboard was copied from.

Any chance you could have a look at this? Thanks!

Re: Copy and paste selection issues in image view, clipboard is to blame?

Posted: Tue Apr 23, 2019 7:52 am
by xnview
:bugconfirmed: Thanks to your detailed description I can reproduce the problem.

For GIMP problem, i don't know why

Re: Copy and paste selection issues in image view, clipboard is to blame?

Posted: Tue Sep 17, 2019 10:23 am
by xnview
This problem is supposed to be fixed in XnView MP 0.94. Please check and confirm the bug fix here.

Re: Copy and paste selection issues in image view, clipboard is to blame?

Posted: Tue Jan 21, 2020 8:13 pm
by marce
I have a similar issue. Im trying to do what was a normal action in XNView: select an area and copy it for use in Gimp or any other program. No luck. The whole image is copied or simply no data at all, to the clipboard

Re: Copy and paste selection issues in image view, clipboard is to blame?

Posted: Fri Mar 20, 2020 11:09 pm
by m_seitzz
I just updated to XnView MP Windows v0.95 64bits (Jan 15 2020) and still get this error when I try to paste image data into GIMP v2.10.14. My OS is Windows 10 Pro v1909. The 32bits version of XnView MP didn't work either.

Re: Copy and paste selection issues in image view, clipboard is to blame?

Posted: Tue Oct 29, 2024 8:42 pm
by m_seitzz
This is still a problem in v1.8.2 (on Windows).

It's probably caused by "MP version does not complete the output stream when it saves an image to the clipboard":
viewtopic.php?f=82&t=38309&p=199275#p199275