Can't copy to clipboard an edited image that is not saved?

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

appyface
Posts: 45
Joined: Thu Sep 15, 2011 12:23 am

Can't copy to clipboard an edited image that is not saved?

Post by appyface »

XnviewMP 1.5.2

I opened an image from the browser view into its own tab. I clicked on "crop" button, pressed CTRL-A to select entire image, then moved the borders and clicked crop to edit the image. I did not save the edited image.

I pressed CTRL-A again to select entire image, then CTRL-C to copy to clipboard. In another application, I used CTRL-V to paste the image. It pastes the original saved image, not the unsaved edited one.

I expected to copy to clipboard what I am seeing on screen, even if it not saved?

If this is by design, could admins move my post to feature request?

Thank you and kind regards.
User avatar
xnview
Author of XnView
Posts: 43719
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Can't copy to clipboard an edited image that is not saved?

Post by xnview »

i can't reproduce, the selected area is correctly pasted. Which app do you use?
Pierre.
appyface
Posts: 45
Joined: Thu Sep 15, 2011 12:23 am

Re: Can't copy to clipboard an edited image that is not saved?

Post by appyface »

Thank you for checking.

I am pasting the edited image most often into Microsoft Word and a webmail compose window. Have also pasted into Techsmith Snagit and Gimp with same result.

I am using Windows 11 Pro 22H2 and XnViewMP 1.5.2 is portable version. (This has been happening for some time, it is not new to 1.5.2.)

Try:

1. XnViewMP browser pane full of images
2. Double-click an image to open in new tab
3. Ctrl-A to select entire image
4. Ctrl-C to copy that image to clipboard
5. Move grid lines to some new positions
6. Click crop button
7. Ctrl-A to select entire (unsaved, cropped) image
8. Ctrl-C to copy to clipboard
9. Open MS-Word
10. Ctrl-V to paste

Original image is always pasted for me, not the unsaved edited one.

(In an unrelated post I reported the browser pane doesn't update when an image is deleted from its own tab, 99% of the time for me. You were not able to reproduce. Also XnViewMP portable and Windows 11 Pro 22H2. Wondering if W11 is at play...?)
User avatar
xnview
Author of XnView
Posts: 43719
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Can't copy to clipboard an edited image that is not saved?

Post by xnview »

Ok, i can reproduce with Write but not Gimp
:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
appyface
Posts: 45
Joined: Thu Sep 15, 2011 12:23 am

Re: Can't copy to clipboard an edited image that is not saved?

Post by appyface »

Awesome! Thank you so much.
User avatar
xnview
Author of XnView
Posts: 43719
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Can't copy to clipboard an edited image that is not saved?

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.5.4. Please check and confirm the bug fix here.
Pierre.
appyface
Posts: 45
Joined: Thu Sep 15, 2011 12:23 am

Re: Can't copy to clipboard an edited image that is not saved?

Post by appyface »

Thank you.

I got an interesting result with the unsaved cropped image.

1. Pasting into Gimp I now get a copy of the cropped image and not the original. Yay!

2. Pasting into my webmail client I now get a copy of the cropped image and not the original. Yay!

3. Pasting into MS-Word I now get a text full path to the original image instead of any image. (Pasting from the unedited original image still works fine.) ???