Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ImageSource ¶
type ImageSource interface { GetImageNames() ([]string, error) GetImage(name string) (image.Image, error) Close() }
ImageSource is an interface for describing a source of images
func NewCropSource ¶
func NewCropSource(src ImageSource, targetAspectRatio image.Point) ImageSource
func NewFolderImageSource ¶
func NewFolderImageSource(dir string) (ImageSource, error)
NewFolderImageSource creates a folder-backed ImageSource
func NewImageSource ¶
func NewImageSource(target string) (ImageSource, error)
NewImageSource detects the type of the target and creates the appropriate ImageSource
func NewZipImageSource ¶
func NewZipImageSource(zipFile string) (ImageSource, error)
NewZipImageSource creates an ImageSource from the given zip file
Click to show internal directories.
Click to hide internal directories.