image/jpeg: jpeg.DecodeConfig
fails on image with sampling-factor: 2x2,1x1,1x2
#54997
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I try execute
jpeg.DecodeConfig
for image image.jpeg and got errorluma/chroma subsampling ratio
at https://github.com/golang/go/blob/go1.19.1/src/image/jpeg/reader.go#L391.identify -verbose image.jpeg
OutputWhat did you expect to see?
I expects
image.Config
with actual image size and color model.What did you see instead?
error:
luma/chroma subsampling ratio
The text was updated successfully, but these errors were encountered: