Thumbnail
Generate thumbnails。

Parameters

Parameter
Type
Description
width
int
Width of the thumbnails.
height
int
Height of the thumbnails.

Return Values

The instance of *imgo.Image .

Examples

package main
import (
"github.com/fishtailstudio/imgo"
)
func main() {
imgo.Load("gopher.png").
Thumbnail(50, 50).
Save("out.png")
}
Copy link
On this page
Parameters
Return Values
Examples