0

I know on Windows, powershell Get-Clipboard -format image outputs the clipboard image.

But the Set-Clipboard command doesn't seem to support image.

Also, how to transform the output from Get-Clipboard -format image to buffer or base64 string?

Huakun Shen
  • 312
  • 2
  • 9
  • Does this help? https://stackoverflow.com/questions/72567806/use-powershell-to-save-a-system-windows-interop-interopbitmap-to-disk/72568111#72568111 – Santiago Squarzon Dec 14 '22 at 04:18

1 Answers1

2

This worked for me.

Get-ChildItem <Image Path> | Set-Clipboard
Gleam
  • 33
  • 3