go-comic-converter
go-comic-converter copied to clipboard
webp decode issue
The webp decoding package has a color conversion issue, which will affect the contrast of black-and-white images. It is recommended to use another package or switch to using dwebp for decoding.
cmd := exec.Command("dwebp.exe", "-o", "-", "--", "-")
cmd.Stdin = bytes.NewReader(rawData)
cmd.Stderr = os.Stderr
output, _ := cmd.Output()
img, err := png.Decode(bytes.NewReader(output))
I don't want to depend on an external tools. do you have an example that shown the issue, so I can play with it?
I find one, but the render seems pretty good. I don't see the problem. Is it happening in certains cases ?