copy png image to clipboard in windows from commandline preserving transparency

0

I have tried nircmd.exe for this, it turns transparency to black. I have also tired XnView, which turns transparency to white.

Don't know how to do this with ImageMagick either, I thought that convert file.png png:- | clip would work, but it looks like it gives me text on my clip like ëPNG...

Mark

Posted 2015-11-21T22:19:09.570

Reputation: 126

Answers

0

I assume you need "paste" image to program.

You can simulate Windows Explorer copy command with CopyQ. After download and run CopyQ, type this command:

copyq.exe copy text/uri-list file:///C:/testdir/file.png

C:/testdir/file.png - path to image. Should be used forward slash /


Also you can give directly full path file.png to program.

"C:\Program Files\paint.net\PaintDotNet.exe" "C:\testdir\file.png"

crazypotato

Posted 2015-11-21T22:19:09.570

Reputation: 678

Here also shown how copy raw data to clipboard. But i not sure how do it in Windows. – crazypotato – 2015-11-22T07:48:20.450