Closed artvel closed 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:
Reproducible with the following code:
call:
Original size of the image is: 1800x3700 Reproducible with the following image:![9_18 5](https://user-images.githubusercontent.com/6398539/85065229-1a7bc900-b1ad-11ea-89fb-fdfd39c5f068.png)