function

package
v0.0.0-...-d399bf9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(req []byte) string

Handle a serverless request

Types

type Options

type Options struct {
	Input          string `json:"input"`
	Width          int    `json:"width"`
	Height         int    `json:"height"`
	Percentage     bool   `json:"perc,string"`
	Square         bool   `json:"square,string"`
	Scale          bool   `json:"scale,string"`
	Debug          bool   `json:"debug,string"`
	Blur           int    `json:"blur"`
	SobelThreshold int    `json:"sobel"`
	UseFace        bool   `json:"face,string"`
}

Options struct contains the resize options defined in the json object.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL