kits

package
v0.0.1-alpha.8 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownMimeType = errors.New("ImageBerry: unknown image mimeType")
View Source
var SupportedMimeTypes = map[string]string{
	"image/gif":  "gif",
	"image/png":  "png",
	"image/jpeg": "jpeg",
	"image/jpg":  "jpg",
	"image/webp": "webp",
}

Functions

This section is empty.

Types

type ImageBerry

type ImageBerry struct{}

func (*ImageBerry) DatePath

func (m *ImageBerry) DatePath() string

func (*ImageBerry) GetExtension

func (m *ImageBerry) GetExtension(img []byte) (string, error)

func (*ImageBerry) MakeThumbnail

func (m *ImageBerry) MakeThumbnail(file []byte, thumbnailSize uint) ([]byte, error)

func (*ImageBerry) Save

func (m *ImageBerry) Save(filePath string, fileBytes []byte) error

Jump to

Keyboard shortcuts

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