Documentation ¶
Overview ¶
nolint: dupl
nolint: dupl
Index ¶
- func CollageFromBytes(imageDataArray [][]byte, descriptions []string, ...) ([]byte, error)
- func CollageFromURLs(client *http.Client, imageUrls, descriptions []string, ...) ([]byte, error)
- type Config
- type Plugin
- func (p *Plugin) Action(event *events.Event) bool
- func (p *Plugin) Help() *common.PluginHelp
- func (p *Plugin) Names() []string
- func (p *Plugin) Passthrough() bool
- func (p *Plugin) Priority() int
- func (p *Plugin) Start(params common.StartParameters) error
- func (p *Plugin) Stop(params common.StopParameters) error
- type Userdeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollageFromBytes ¶
func CollageFromBytes( imageDataArray [][]byte, descriptions []string, width, height, tileWidth, tileHeight int, ) ([]byte, error)
Creates a Collage PNG Image from image []byte (PNG or JPEG). imageDataArray : a slice of all image []byte data descriptions : a slice with text that will be written on each tile. Can be empty. width : the width of the result collage image. height : the height of the result collage image. tileWidth : the width of each tile image. tileHeight : the height of each tile image. backgroundColour : the background colour as a hex string.
func CollageFromURLs ¶
func CollageFromURLs( client *http.Client, imageUrls, descriptions []string, width, height, tileWidth, tileHeight int, ) ([]byte, error)
Creates a Collage PNG Image from internet image urls (PNG or JPEG). imageUrls : a slice with all image URLs. Empty strings will create an empty space in the collage. descriptions : a slice with text that will be written on each tile. Can be empty. width : the width of the result collage image. height : the height of the result collage image. tileWidth : the width of each tile image. tileHeight : the height of each tile image. backgroundColour : the background colour as a hex string.
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) Help ¶
func (p *Plugin) Help() *common.PluginHelp