Skip to content

Conversation

mattn
Copy link
Contributor

@mattn mattn commented May 18, 2019

kernel.ir.Comp.Converter(typ, xtyp) possibly return nil when the arg is image.Image.

import (
    "os"
    "log"
    "image"
    _ "image/png"
)

f, err := os.Open("example.jpg")
if err != nil {
    log.Fatal(err)
}

img, _, err := image.Decode(f)
if err != nil {
    log.Fatal(err)
}
img

@cosmos72
Copy link
Member

Thanks for spotting this!

@cosmos72 cosmos72 merged commit 42dbcfe into gopherdata:master May 24, 2019
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

Successfully merging this pull request may close these issues.

2 participants