Skip to content
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

Copy image data does not copy transparency correct #1305

Closed
bjornsyse opened this issue Mar 8, 2022 · 1 comment
Closed

Copy image data does not copy transparency correct #1305

bjornsyse opened this issue Mar 8, 2022 · 1 comment
Assignees
Milestone

Comments

@bjornsyse
Copy link

System information:

  • Windows OS version: Windows 10 Version 10.0.19044 Build 19044
  • ImageGlass version: 8.5.1.22

To Reproduce

Steps to reproduce the behavior:

  1. Open Transparent image
  2. Copy image data (CTRL+C)
  3. Open image data from Clipboard (CTRL+V)

Actual behavior:

Alpha channel is lost, and replaced with white.

Expected behavior:

Alpha channel is retained. This is how it works if I copy from a layer in for example photoshop.

Screenshots:

Additional context:

@d2phap d2phap added this to the v8.5 milestone Apr 9, 2022
d2phap added a commit that referenced this issue May 19, 2022
@d2phap
Copy link
Owner

d2phap commented May 19, 2022

Add support for copy/paste transparency in the latest build of ImageGlass Moon 8: https://imageglass.org/moon.
So far it works with Paint.NET, MS Word, Power Point, Excel, MS Edge, Chrome,..

Please note that, Because the Windows clipboard data is really dirty and inconsistent, and some software create its own way to copy and paste image data, this implementation is just try to cover all the popular formats as the below screenshot. While PNG and CF_DIB contain image transparency, the clipboard-reader software should support reading from PNG and CF_DIB to retrieve the bitmap with transparency.

image

Debug with InsideClipboard:

image

@d2phap d2phap closed this as completed May 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants