b-init / ImagePaste

A simple Blender addon to grab images from your clipboard and paste as a reference image in viewport or onto the image editor.
GNU General Public License v3.0
246 stars 9 forks source link

BUG: ShareX images doesn't get detected by Image Paste #38

Open Xiarno opened 1 year ago

Xiarno commented 1 year ago

Describe the bug

I'm trying to use the function to screenshot and copy to clipboard using ShareX but Image Paste always tells me "No image found on clipboard". I can copy any other images from anywhere as well as files directly and paste them correctly and it works but not ShareX for some reason.

And no, ShareX is not the issue. I've been doing this for years now on every software without any issue so idk why now it's suddenly a problem.

Step to reproduce

  1. Use ShareX to make a screenshot.
  2. Copy that screenshot.
  3. Attempt to paste it in Blender using the Image Paste addon.

Relevant log output

No response

Expected behavior

The image should paste correclty.

Platform

Windows

Platform version

21H2

Blender version

Other

b-init commented 1 year ago

ShareX puts the image onto the clipboard in DIB (or DIBV5, or BITMAP) format which is not properly supported by Blender, even if ImagePaste can pull it off the cliboard.

But there is a workaround, copying "File" instead of "Image" from ShareX works (Tested on v1.9.0e but should work on older builds too). image