preprocess

package
v0.0.0-...-e1de4b4 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_HEIGHT = 4096 * 2
View Source
const MAX_WIDTH = 4096

Variables

This section is empty.

Functions

func ReduceImage

func ReduceImage(data []byte, sourceImageContentType string, q Query) ([]byte, error)

ReduceImage クエリに従って画像を加工して返す

Types

type Query

type Query struct {
	MaxWidth     int    // 最大width
	MaxHeight    int    // 最大height
	Width        int    // width
	Height       int    // height
	EncodeTarget string // 出力時の形式 ("", "image/jpeg", "image/png", "image/webp")
}

Query preprocess指示

Jump to

Keyboard shortcuts

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