randy408 / libspng

Simple, modern libpng alternative
https://libspng.org
BSD 2-Clause "Simplified" License
741 stars 75 forks source link

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

Open jitspoe opened 1 year ago

jitspoe commented 1 year ago

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!

randy408 commented 10 months ago

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