-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Restore -Format option in Get-Clipboard #12290
Comments
If I remember right it was a design conclusion to have consistent behavior over all supported systems but we do not consider such scenario. |
I would like to add that a method capable of outputting the image into different size chunks, such as the following, would be a welcomed addition. $MediaFileInfo = Get-ChildItem $Path
$BufferSize = 900000
$Buffer = [Byte[]]::new($BufferSize)
$Reader = [System.IO.File]::OpenRead($MediaFileInfo.FullName)
$Media = [ArrayList]::new()
do {
$BytesRead = $Reader.Read($Buffer, 0 , $BufferSize)
$null = $Media.Add([Convert]::ToBase64String($Buffer, 0, $BytesRead))
} while ($BytesRead -eq $BufferSize)
$Reader.Dispose() Perhaps something like Thank you, |
Still no answers. |
Not fixed |
Summary of the new feature/enhancement
We used to be able to save images in the clipboard as files by following in Windows Powershell 5:
As you know,
Get-Clipboard
went somewhere in PowerShell Core 6 but came back in 7. The remaining problem is that only text is supported and we can't fetch images (and audio).Windows lacks the feature to save an image in the clipboard as a file. I don't want to run Paint 3D or something, paste one, and save it.(I found we can paste a medium in clipboard to Explorer)PowerShell 7 is said to be compatible with 5, but this absence gives me an opportunity to run the legacy PowerShell 5.
Proposed technical implementation details (optional)
The text was updated successfully, but these errors were encountered: