Copy & Paste PNG picture to other programs not working

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, helmut, xnview

Post Reply
s0lution
Posts: 4
Joined: Fri Nov 16, 2012 6:18 pm

Copy & Paste PNG picture to other programs not working

Post by s0lution »

I want to copy the current shown PNG picture from XnView to Outlook. I do select all, than copy. But pasting into Outlook or LibreOffice for example doesn't work. Nothing happens. I'm using the newest version of XnView Classic, Windows 10,Office 2016, LibreOffice 6. I've also tested it with JPG and it's working.
User avatar
xnview
Author of XnView
Posts: 43328
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Copy & Paste PNG picture to other programs not working

Post by xnview »

i've tried with a png, and it works with LibreOffice
Pierre.
esszett
Posts: 4
Joined: Mon Sep 24, 2018 10:53 am

Re: Copy & Paste PNG picture to other programs not working

Post by esszett »

I totally agree, the copy paste behaviour (within the picture view) in 2.45 is buggy. Sometimes it is possible to copy with ctrl-c and and paste it in any other program and sometimes it behaves as if nothing is in the clipboard (90%).

I´ve learned (also from many other complains in the forum):
1. only 32bit-bitmaps behave strange (24bit is no problem)
2. pasting within XNview (via edit/paste as new image) is working
3. pasting in Photoshop is also working
4. pasting in any other program (Word, Outlook, Corel, even Fireworks where all my 32bit-PNGs come from) is not working. Some programs show error "the data format is not available".
(4b. sometime same images works)
5. the often mentioned ctrl-shift-c is also not working (I still don´t understand why this strange key code is introduced)
6. All other pictureviewer are able to copy 32bit picture from the picture view

Devs, please fix this simple bug. I need it very often.
esszett
Posts: 4
Joined: Mon Sep 24, 2018 10:53 am

Re: Copy & Paste PNG picture to other programs not working

Post by esszett »

Bug still in 2.46 :(
User avatar
xnview
Author of XnView
Posts: 43328
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Copy & Paste PNG picture to other programs not working

Post by xnview »

in xnview.ini, do you have CopyClipboard=0

Ctrl+Shift+C in browser copy only image data, does it work?
Pierre.
esszett
Posts: 4
Joined: Mon Sep 24, 2018 10:53 am

Re: Copy & Paste PNG picture to other programs not working

Post by esszett »

I tested it again with several programs. The behaviour is very strange as the result differs. As mentioned before it is only working with Photoshop with "ctrl+c" and default ini-entry: "CopyClipboard=0" and 32bit pictures.
Ctrl+Shift+C is never working.
Word allows pasting if "ctrl-c" but only from browse view and not from picture view.

Turning "CopyClipboard" to 1 makes it even worst as 24bit is also not working. Photoshop & Gimp does not paste anything, Fireworks pastes the path-string. Only Word works with "ctrl-c".
Why not having it always the same??? Xnview is a picture viewer and why can´t it copy pictures?
User avatar
xnview
Author of XnView
Posts: 43328
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Copy & Paste PNG picture to other programs not working

Post by xnview »

In Browser, if you copy a 32bits PNG, it will be loaded as 24bits, so Ctrl+C works always

Sorry but the problem is not with CopyClipboard (keep CopyClipboard=0)

But [Start] ClipboardNewMethod=0

It seems that some apps don't like the new clipboard format...
Pierre.
esszett
Posts: 4
Joined: Mon Sep 24, 2018 10:53 am

Re: Copy & Paste PNG picture to other programs not working

Post by esszett »

Thanks, with the new entry [Start] ClipboardNewMethod=0 it is possible to copy images. Not logical, as it is different in browser and viewer but it finally works :D
I switched to xnviewMP where ctrl-shift-c is always coping the image.

While testing it I found another bug: not all PNGs are shown/recognized as PNG. I coudn´t find the reason. Could be due to the amount of layers inside PNG, but the final size doesn´t matter.
StenCG
Posts: 1
Joined: Thu Apr 30, 2020 7:33 am

Re: Copy & Paste PNG picture to other programs not working

Post by StenCG »

Hello! I have been using XnView Classic for at least 5 years and today I first encountered this problem, ClipboardNewMethod=0 helped, the latest version of the program, Windows 10 with the latest updates.
Post Reply