image

package
v0.0.0-...-f37aa3b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(bytes []byte, imgType string) ([]byte, string, string)

Convert takes the image bytes and target format as extension or MIME type

func Crop

func Crop(bytes []byte, width, height int64, gravity string) []byte

func Enlarge

func Enlarge(bytes []byte, width, height int64) []byte

func Extract

func Extract(bytes []byte, x, y, width, height int64) []byte

func Flip

func Flip(bytes []byte, axis string) []byte

func Resize

func Resize(bytes []byte, width int64, height int64) []byte

func Rotate

func Rotate(bytes []byte, angle int64) []byte

Types

type ImageType

type ImageType bimg.ImageType

func NewImageType

func NewImageType(itype string) ImageType

func (ImageType) ToExtension

func (imgType ImageType) ToExtension() string

func (ImageType) ToMime

func (imgType ImageType) ToMime() string

Jump to

Keyboard shortcuts

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