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

unsupported JPEG feature: luma downsample ratio #4291

Closed
gopherbot opened this issue Oct 26, 2012 · 2 comments
Closed

unsupported JPEG feature: luma downsample ratio #4291

gopherbot opened this issue Oct 26, 2012 · 2 comments
Milestone

Comments

@gopherbot
Copy link

by steve.wangbin:

What steps will reproduce the problem?
use image.jpeg.Decode to decode some jpeg files one of which has been attached.

If possible, include a link to a program on play.golang.org.
the program is quite simple as below:
package main

import (
    "fmt"
    "image/jpeg"
    "os"
)

func main() {
    if len(os.Args) != 2 {
        return
    }
    f, err := os.Open(os.Args[1])
    if err != nil {
        fmt.Println(err.Error())
        return
    }
    defer f.Close()
    img, err := jpeg.Decode(f)
    if err != nil {
        fmt.Println(err.Error())
        return
    }
    _ = img
}

What is the expected output?
no output

What do you see instead?
unsupported JPEG feature: luma downsample ratio

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
ubuntu 12.04.1 x86_64

Which version are you using?  (run 'go version')
1.0.3

Please provide any additional information below.
https://groups.google.com/forum/?fromgroups=#!topic/golang-nuts/Soo54p35dmk

Attachments:

  1. _MG_7715.JPG (2879432 bytes)
@mpl
Copy link
Contributor

mpl commented Oct 26, 2012

Comment 1:

This is an image with a 4:4:0 chroma downsampling ratio, which is supported on tip, but
I suppose not yet on Go1.

@robpike
Copy link
Contributor

robpike commented Oct 26, 2012

Comment 2:

Fixed at tip by http://golang.org/cl/6326057

Status changed to Fixed.

@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants