Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EnableLog = false
Functions ¶
func AddWatermark ¶
func AddWatermark(src string, dst string, inout *ImageIOSize, watermark *imagick.MagickWand, style *WatermarkStyle) (err error)
Types ¶
type Coordinate ¶
type Coordinate struct {
X, Y float64
}
type ImageIOSize ¶
type ImageIOSize struct { InResolution *Coordinate OutScale float64 }
type ImageWatermark ¶
type ImageWatermark struct { Style *WatermarkStyle File string }
func (*ImageWatermark) NewWatermark ¶
func (iwm *ImageWatermark) NewWatermark() (*imagick.MagickWand, error)
type TextWatermark ¶
type TextWatermark struct { Style *WatermarkStyle TextStyle *TextStyle Text string }
func (*TextWatermark) NewWatermark ¶
func (twm *TextWatermark) NewWatermark() (*imagick.MagickWand, error)
type WatermarkCreator ¶
type WatermarkCreator interface {
NewWatermark() (*imagick.MagickWand, error)
}
type WatermarkStyle ¶
Click to show internal directories.
Click to hide internal directories.