Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

interrupted by signal 11: SIGSEGV #64

Closed
artvel opened this issue Jun 18, 2020 · 0 comments
Closed

interrupted by signal 11: SIGSEGV #64

artvel opened this issue Jun 18, 2020 · 0 comments
Labels

Comments

@artvel
Copy link

artvel commented Jun 18, 2020

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

@bakape bakape added the bug label Jun 18, 2020
@bakape bakape closed this as completed in d0ced7e Jun 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants