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

Website basic usage example has wrong parameter order for spng_decode_image() #260

Open
jitspoe opened this issue Oct 6, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@jitspoe
Copy link

jitspoe commented Oct 6, 2023

Not sure if this is the correct place to report this, but I was following the example on https://libspng.org/docs/usage/ and trying to figure out why it didn't work before I realized the parameters were in the wrong order. spng_decode_image(ctx, SPNG_FMT_RGBA8, out, out_size, 0); should be spng_decode_image(ctx, out, out_size, SPNG_FMT_RGBA8, 0);

I just wanted to be sure somebody was aware of it!

@jitspoe jitspoe added the bug Something isn't working label Oct 6, 2023
@randy408
Copy link
Owner

The libspng.org docs are created from this repository so the issue will be fixed in usage.md in the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants