bakape / thumbnailer

Go media thumbnailer
MIT License
152 stars 36 forks source link

interrupted by signal 11: SIGSEGV #64

Closed artvel closed 4 years ago

artvel commented 4 years ago

Reproducible with the following code:

func thumbnail(fp string, w, h uint) (image.Image, error) {
    opts := thumbnailer.Options{
        ThumbDims: thumbnailer.Dims{Width: w, Height: h},
    }
    f, er := os.Open(fp)
    if er != nil {
        return nil, er
    }
    defer f.Close()
    _, thumb, err := thumbnailer.Process(f, opts)
    if err != nil {
        return nil, err
    }
    return thumb, err
}

call:

thumbnail("9_18.5.png",800,1700)

Original size of the image is: 1800x3700 Reproducible with the following image: 9_18 5