Documentation ¶
Index ¶
Constants ¶
View Source
const ( ScaleResize = "resize" ScaleContain = "contain" ScaleCover = "cover" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackgroundType ¶
type BackgroundType struct {
Color string `json:"color" yaml:"color"`
}
type Config ¶
type Config struct { Source string `json:"source" yaml:"source"` Scale string `json:"scale" yaml:"scale"` Background *BackgroundType `json:"background,omitempty" yaml:"background,omitempty"` }
func ParseConfig ¶
func (*Config) GenerateImage ¶
Click to show internal directories.
Click to hide internal directories.