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

ARGB isn't saved correctly #63

Open
elronayellin opened this issue May 14, 2020 · 0 comments
Open

ARGB isn't saved correctly #63

elronayellin opened this issue May 14, 2020 · 0 comments

Comments

@elronayellin
Copy link

Redirecting JuliaImages/ImageShow.jl#24 here.
It appears that save_ is first converting the input ARGB image to an RGBA image. The RGBA image bytes are used to create the CGBitmap, but the original ARGB channel ordering enumeration is passed in to CGBitmapContextCreate, so for example, red becomes blue.
It's not clear to me if the mapping from from ARGB to RGBA was intentional, ie, is the bug that it's mapped or that the wrong label is applied to the written data; it means save/load roundtrips wouldn't get you back to what you started with.

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

1 participant