Documentation ¶
Index ¶
- func AdjustProperties(srcWidth int, srcHeight int, desiredWidth int, desiredHeight int, ...) (bool, int, int, bool, string)
- func ApplyOrientation(src image.Image, orientation *ExifOrientation) image.Image
- func Encode(ctx rcontext.RequestContext, w io.Writer, img image.Image, ...) error
- func FastSampleAudio(stream beep.StreamSeekCloser, numSamples int) ([][2]float64, error)
- func GetID3Tags(b io.Reader) (tag.Metadata, io.ReadSeekCloser, error)
- func MakeThumbnail(src image.Image, method string, width int, height int) (image.Image, error)
- type EncodeSource
- type ExifOrientation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdjustProperties ¶
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.