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

Returned image buffer has Red and Blue channels swapped [b, g, r, a] #739

Open
Ober3550 opened this issue May 19, 2023 · 1 comment
Open

Comments

@Ober3550
Copy link

Expected Behavior

Image buffer should be in the format [r, g, b, a]

Current Behavior

Image buffer is in the format [b, g, r, a]

Possible Solution

Change how the internals read the buffer or flip the channels before returning to user

Context

When using this library with other modules like sharp it's expected that raw formats are [r, g, b] or [r, g, b, a]. This weird color channel setup makes it annoying to use with other image manipulation tools.

@JijaProGamer
Copy link

Images are in bgra because thats the preffered format for 99.999% of GPUs, so when they take the frame buffer, they keep the format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants