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: Missing `DIB` support on Windows #23

Open thanhph111 opened 2 years ago

thanhph111 commented 2 years ago

Describe the bug

After implementing #22, the Bitmap and PNG data types have been supported, allowing multiple software to paste transparent images. However, some softwares need the DeviceIndependentBitmap to read. One of them is Discord, we should support them too. This issue continues the #12. Pasted from Blender Pasted from Chrome
Blender Chrome

Step to reproduce

  1. Open a transparent image in the Image Editor. Here is an example.
  2. Use Ctrl+Shift+C or Image|Copy to Clipboard to copy the image.
  3. Paste them in Discord or any software that uses DIB.

Relevant log output

No response

Expected behavior

DeviceIndependentBitmap should be in the clipboard after copying from Blender.

Platform

Windows

Platform version

20H2

Blender version

2.83, 2.90, 2.91, 2.92, 2.93, 3.0

b-init commented 2 years ago

This is not possible unless we use some external module to convert images to an alpha-supporting bitmap because blender does not support alpha in bitmaps and can't export such image to copy to clipboard.