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

golang.org/x/image/webp: PNG generated is in lower color #69953

Closed
ZhongUncle opened this issue Oct 20, 2024 · 2 comments
Closed

golang.org/x/image/webp: PNG generated is in lower color #69953

ZhongUncle opened this issue Oct 20, 2024 · 2 comments

Comments

@ZhongUncle
Copy link

ZhongUncle commented Oct 20, 2024

Go version

go version go1.22.0 darwin/amd64

Output of go env in your module/workspace:

GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/Users/zhonguncle/Library/Caches/go-build'
GOENV='/Users/zhonguncle/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/zhonguncle/Desktop/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/zhonguncle/Desktop/go'
GOPRIVATE=''
GOPROXY='https://goproxy.cn'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/darwin_amd64'
GOVCS=''
GOVERSION='go1.22.0'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='clang'
CXX='clang++'
CGO_ENABLED='1'
GOMOD='/Users/zhonguncle/Desktop/go/src/webp2png/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/_j/f2g2qcw11379d43mq5rdj5jw0000gn/T/go-build1702115736=/tmp/go-build -gno-record-gcc-switches -fno-common'

What did you do?

I write code to convert WEBP image to PNG, the code is:

go run main.go

What did you see happen?

The image is in much lower color.

I try png to png, not happened this thing. And I try Apple convert tool and dwebp in libwebp-1.4.0-mac-x86-64 to do it, they just have a little color changed.

I use digital color meter in Mac to measure them, they are actually different.

What did you expect to see?

dwebp image generated just have a little color changed.

@ianlancetaylor
Copy link
Member

Looks like a dup of #40173.

@ianlancetaylor ianlancetaylor closed this as not planned Won't fix, can't repro, duplicate, stale Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants