You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't looked too much into it but my initial tests with spngt on the two images at w3c/png#96 appear to not decode with wuffs, probably because the out-of-range values are handled as an error, might want to change it to match libpng's defaults.
The text was updated successfully, but these errors were encountered:
// Set the remaining palette entries to opaque black.
while i < 256 {
this.src_palette[(4 * i) + 0] = 0x00
this.src_palette[(4 * i) + 1] = 0x00
this.src_palette[(4 * i) + 2] = 0x00
this.src_palette[(4 * i) + 3] = 0xFF
i += 1
} endwhile
explicitly fills out-of-range palette entries to opaque black.
After running ./build-example.sh example/imageviewer from the Wuffs directory, the gen/bin/example-imageviewer X11 GUI program (which exercises Wuffs' PNG decoder) seems to agree with the w3c/png#96 original post: gray border, opaque black top and (opaque blue | transparent) bottom. Use the comma key, in gen/bin/example-imageviewer, to cycle the background color (which shows through transparent pixels).
I haven't looked too much into it but my initial tests with spngt on the two images at w3c/png#96 appear to not decode with wuffs, probably because the out-of-range values are handled as an error, might want to change it to match libpng's defaults.
The text was updated successfully, but these errors were encountered: