-
Notifications
You must be signed in to change notification settings - Fork 452
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 exporting R8 files as PNG using libpng #503
Conversation
Fixes an incorrect stride value for R8 images being exported to PNG on the experimental libpng SaveToPNGFile implementation.
@luncliff Do you agree with this fix? |
When testing this I found that GetMetadataFromFile wasn't fully initializing the metadata struct.
I add a formal test for this code, and verified this is the right fix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mostly worked with reading/writing colored images.
Nice fix!
R8_UNORM shouldn't use TEX_ALPHA_MODE flags.
added error since interlacing fails
Trim whitespace
The CLA was triggered due to my edits. @microsoft-github-policy-service agree company="Microsoft" |
Updating test suite to cover this code explicitly walbourn/directxtextest#46 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix. Added a few more after testing.
Fixes an incorrect stride value for R8 images being exported to PNG on the experimental libpng SaveToPNGFile implementation.
Also updated to make it clear interlaced images are not supported.