-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
image/jpeg: jpeg.DecodeConfig
fails on image with sampling-factor: 2x2,1x1,1x2
#54997
Comments
cc @nigeltao |
The following table "decodes" the SOF0 frame header of the image1. As you have pointed out, the sampling factors for each component are:
The comment in the source code states that:
Since
Footnotes
|
Change https://go.dev/cl/430315 mentions this issue: |
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: