images

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	image.Image
	Format string
}

func LoadImage

func LoadImage(reader io.Reader) (*Image, error)

func (*Image) CropToSquare

func (i *Image) CropToSquare() (*Image, error)

func (*Image) GetExtension

func (i *Image) GetExtension() (string, error)

func (*Image) ResizeToSquare

func (i *Image) ResizeToSquare(size int) *Image

func (*Image) Save

func (i *Image) Save(writer io.Writer) error

Jump to

Keyboard shortcuts

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