Documentation ¶
Index ¶
- Constants
- func RegisterFilter(t string, c func(m map[string]interface{}) (Filter, error))
- type Filter
- func New(t string, m map[string]interface{}) (Filter, error)
- func NewBlur(r float64) Filter
- func NewBlurFromMap(m map[string]interface{}) (Filter, error)
- func NewFromConfig(c interface{}) (Filter, error)
- func NewFromMap(m map[string]interface{}) (Filter, error)
- func NewNull() Filter
- func NewNullFromMap(m map[string]interface{}) (Filter, error)
- func NewOverlay(p int, g string, fi *image.RGBA) Filter
- func NewOverlayFromMap(m map[string]interface{}) (Filter, error)
- func NewResize(w, h int) Filter
- func NewResizeFromMap(m map[string]interface{}) (Filter, error)
- func NewText(g string, s stamp.Stamp, tc color.Color, bc color.Color) Filter
- func NewTextFromMap(m map[string]interface{}) (Filter, error)
- func NewThumbnail(w, h int, g string) Filter
- func NewThumbnailFromMap(m map[string]interface{}) (Filter, error)
- func NewWatermark(cs int, c color.Color, s []stamp.Stamp) Filter
- func NewWatermarkFromMap(m map[string]interface{}) (Filter, error)
- type Filters
Constants ¶
View Source
const GravityCenter string = "center"
View Source
const GravityEast string = "east"
View Source
const GravityNorth string = "north"
View Source
const GravityNorthEast string = "north_east"
View Source
const GravityNorthWest string = "north_west"
View Source
const GravitySouth string = "south"
View Source
const GravitySouthEast string = "south_east"
View Source
const GravitySouthWest string = "south_west"
View Source
const GravityWest string = "west"
View Source
const TypeBlur = "blur"
View Source
const TypeNull = "null"
View Source
const TypeOverlay = "overlay"
View Source
const TypeResize = "resize"
View Source
const TypeText = "text"
View Source
const TypeThumbnail = "thumbnail"
View Source
const TypeWatermark = "watermark"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Filter ¶
func NewBlurFromMap ¶
func NewFromConfig ¶
func NewFromMap ¶
func NewNullFromMap ¶
func NewOverlayFromMap ¶
func NewResizeFromMap ¶
func NewTextFromMap ¶
func NewThumbnail ¶
func NewThumbnailFromMap ¶
func NewWatermarkFromMap ¶
Click to show internal directories.
Click to hide internal directories.