Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidDimensions gets returned when the requested image has an invalid width or height ErrInvalidDimensions = errors.New("values for width or height must be positive") // ErrMissingFontOption gets returned when there's no font specified in the options ErrMissingFontOption = errors.New("no font option specified") )
Functions ¶
This section is empty.
Types ¶
type ImageGenerator ¶
type ImageGenerator struct {
// contains filtered or unexported fields
}
ImageGenerator lets you generate images & placeholders
func NewImageGenerator ¶
func NewImageGenerator(options Options) (*ImageGenerator, error)
NewImageGenerator returns a new ImageGenerator
func (*ImageGenerator) NewPlaceholder ¶
NewPlaceholder returns a placeholder image with the given text, width & height
Click to show internal directories.
Click to hide internal directories.