question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Images pasted are all blank (bug since 1.0.3)

See original GitHub issue

Description

When pasting an image into Visual Studio Code markdown file, the image will be completely blank with every pixel transparent.

How to reproduce it?

  1. Copy an image into the clipboard;
  2. Press Ctrl+Alt+V and wait for the insertion of the image.

What’s the environment?

  • OS: Windows 10 Pro Insider Preview 18290.1000
  • Extension: 1.0.3 (Notice that 1.0.2 does not reproduce this issue)

What happened?

You can see that the image pasted is transparent.

image

And to reveal it in the explorer, it is also transparent.

image

But actually, it can be pasted into other applications such as what I’m writing on GitHub issues.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
NickSegallecommented, Dec 19, 2018

The issue appears to be how PowerShell is writing the image file. If you look at the following script: mushan.vscode-paste-image-1.0.3\res\pc.ps1

Line 18:

$fcb = new-object Windows.Media.Imaging.FormatConvertedBitmap($img, [Windows.Media.PixelFormats]::Rgba64, $null, 0)

It doesn’t seem to like the alpha code in ‘Rgba64’. I’ve tried several formats here, but it seems to be the alpha code. Also appears to be a fix from Issue #29. If you just change it back to ‘Rgb24’, it will work again.

0reactions
walterlvcommented, Jan 23, 2019

@mushanshitiancai 哈!刚刚收到了你的 1.0.4 的更新啦,感谢!

Read more comments on GitHub >

github_iconTop Results From Across the Web

copy & paste images or pictures problems in Windows 10
Hi...since I upgrade to Windows 10 last month (end of July 2015) I could not copy & paste images or pictures easily anymore....
Read more >
5.1.0.3 images not displayed writer - English
Images are not being displayed in Writer. I paste the images in and they are not displayed. If I open the doc with...
Read more >
Grounded guide: List of all known bugs, issues, and ...
Grounded is a great game, but it is in early access. This means bugs and issues are going to be numerous. Here's what...
Read more >
My Account page blank
Disable all plugins except for WooCommerce. 4. Repeat the action that is causing the problem. If you're not seeing the same problem after...
Read more >
Why can I suddenly not import/copy/paste images?
Hello all, I have encountered a problem I've never seen before -- when I try to add an image, Mural just adds a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found