convert

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: AGPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountConverters

func CountConverters() int

func Extensions

func Extensions() []string

Extensions 所有可转换格式的扩展名

func Register

func Register(extension string, convert Convert)

Register 注册图片格式转换功能

func Unregister

func Unregister(extension string)

Unregister 取消注册

Types

type Convert

type Convert func(r io.Reader, quality int) (*bytes.Buffer, error)

Convert 图片格式转换

func GetConverter

func GetConverter(extension string) (Convert, bool)

GetConverter 获取图片格式转换功能

Jump to

Keyboard shortcuts

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