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

Fix not specifying depth for ComputeImageSize in ConvertInPlace #12

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

WinterPhoenix
Copy link

@WinterPhoenix WinterPhoenix commented Feb 5, 2024

This leads to all sorts of wrong behavior involving the buffer size, because it's calculating it wrong!

Furthermore, since ImageFormat will always be RGBA8888, trying to convert to other formats leads to things like swapped color channels and other broken behavior.

One such issue caused by this: StrataSource/vtex2#37

Copy link
Member

@JJL772 JJL772 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks for the PR!

@JJL772 JJL772 merged commit f2f34da into StrataSource:master Feb 5, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants