stb icon indicating copy to clipboard operation
stb copied to clipboard

stb_image_resize: Fix edge reflect overflow

Open jspohr opened this issue 4 years ago • 3 comments
trafficstars

Noticed that my lowest mipmaps contained random colors after switching to STBIR_EDGE_REFLECT. I believe this is the correct fix, but please correct me if I'm wrong. Cheers!

jspohr avatar Feb 28 '21 13:02 jspohr

Has this patch been reviewed / well-tested?

sezero avatar Jun 01 '22 16:06 sezero

Reviewed - not as far as I know. Tested - it worked for me on Windows and Linux. We were using the EDGE_REFLECT mode only rarely, though.

jspohr avatar Jun 03 '22 10:06 jspohr

OK, thanks.

sezero avatar Jun 03 '22 12:06 sezero

Looks like this was fixed in stb_image_resize2

jspohr avatar Oct 31 '23 10:10 jspohr