util

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: BSD-3-Clause Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64EncodeImage added in v0.1.3

func Base64EncodeImage(im image.Image, format string) (string, error)

func DecodeImage

func DecodeImage(path string) (image.Image, string, error)

func DecodeImageFromReader

func DecodeImageFromReader(fh io.Reader) (image.Image, string, error)

func EncodeImage

func EncodeImage(im image.Image, format string, wr io.Writer) error

func EncodeTempImage

func EncodeTempImage(im image.Image, format string) (string, error)

func ImageToDataURL added in v0.1.3

func ImageToDataURL(im image.Image, format string) string

func NewImageWithRotationFromPath

func NewImageWithRotationFromPath(path string) (image.Image, string, error)

func NewImageWithRotationFromReader

func NewImageWithRotationFromReader(r io.ReadSeeker) (image.Image, string, error)

func RotateWithOrientation added in v0.1.2

func RotateWithOrientation(im image.Image, orientation string) (image.Image, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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