u

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdjustProperties

func AdjustProperties(srcWidth int, srcHeight int, desiredWidth int, desiredHeight int, wantAnimated bool, method string) (bool, int, int, bool, string)

func ApplyOrientation

func ApplyOrientation(src image.Image, orientation *ExifOrientation) image.Image

func Encode

func Encode(ctx rcontext.RequestContext, w io.Writer, img image.Image, sourceFlags ...EncodeSource) error

func FastSampleAudio

func FastSampleAudio(stream beep.StreamSeekCloser, numSamples int) ([][2]float64, error)

func GetID3Tags

func GetID3Tags(b io.Reader) (tag.Metadata, io.ReadSeekCloser, error)

func MakeThumbnail

func MakeThumbnail(src image.Image, method string, width int, height int) (image.Image, error)

Types

type EncodeSource

type EncodeSource int
const (
	GenericSource EncodeSource = 0
	JpegSource    EncodeSource = 1
)

type ExifOrientation

type ExifOrientation struct {
	RotateDegrees  int // should be 0, 90, 180, or 270
	FlipVertical   bool
	FlipHorizontal bool
}

func ExtractExifOrientation

func ExtractExifOrientation(r io.Reader) *ExifOrientation

func GetExifOrientation

func GetExifOrientation(img io.Reader) (*ExifOrientation, error)

Jump to

Keyboard shortcuts

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