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

Color Picker Wrong RGBA Values for Fully Transparent Pixels #2016

Open
ThioJoe opened this issue Sep 22, 2024 · 0 comments
Open

Color Picker Wrong RGBA Values for Fully Transparent Pixels #2016

ThioJoe opened this issue Sep 22, 2024 · 0 comments

Comments

@ThioJoe
Copy link

ThioJoe commented Sep 22, 2024

System information

  • Windows OS version: 24H2 - Build 26100.1742
  • ImageGlass version: 9.1.8.723 (64-bit)
  • ImageGlass release: Classic

To Reproduce

Steps to reproduce the behavior:

  1. Open png image with transparent pixels
  2. Use color picker tool, click on fully transparent part

Actual behavior

If the pixel alpha is 0, it then always seems to show 0 for the RGB values as well (0,0,0,0), regardless of their actual value

Expected behavior

It would show the true values of the RGB channels.

Screenshots / Video / Sample image file

Example Image:

See how it always shows 0,0,0,0 for the transparent pixels. However the RGB channels are not actually zero, as shown by the next video:

ImageGlassTest.mp4

An example of another software called PixelViewer where at the bottom left you can see the actual ARGB channel values - in this case (0, 71, 112, 76):

PixelViewerTest.mp4

Why It Matters

The reason this matters is that occasionally, certain photo software that don't support transparency will "flatten" the transparency differently based on the underlying RGBA values. So it can be useful to know and check what those values are. Certain software will save transparent pixels differently too. For example Photoshop saves fully transparent pixels as 0,0,0,0 while MS Paint saves them as 0,255,255,255.

And take this image for example, which for whatever reason has a configuration that Google Photos doesn't like, and so Google Photos on iOS actually shows the transparent pixels as opaque, so it could be good to be able to see that info and see why:
Test

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