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

Older bugs which are supposed to be fixed in 0.84. *** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: XnTriq, helmut, xnview, Dreamer

warmaker
Posts: 3
Joined: Fri Apr 19, 2019 4:14 pm

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

Post 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!
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 44922
Joined: Mon Oct 13, 2003 7:31 am
Location: France

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

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.

For GIMP problem, i don't know why
Pierre.
User avatar
xnview
Author of XnView
Posts: 44922
Joined: Mon Oct 13, 2003 7:31 am
Location: France

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

Post by xnview »

This problem is supposed to be fixed in XnView MP 0.94. Please check and confirm the bug fix here.
Pierre.
marce
Posts: 4
Joined: Tue Jan 21, 2020 8:10 pm

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

Post 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
m_seitzz
Posts: 12
Joined: Sun Jan 13, 2019 1:01 pm

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

Post 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.
m_seitzz
Posts: 12
Joined: Sun Jan 13, 2019 1:01 pm

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

Post 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