Documentation ¶
Index ¶
- Constants
- func UrlGrabber(url string, headers map[string]string, b *[]byte, mimeType *string, ...) error
- type Imagik
- func (img *Imagik) Bounds() image.Rectangle
- func (img *Imagik) Crop(rect image.Rectangle)
- func (img *Imagik) CropCenter(w int, h int)
- func (img *Imagik) ExportAsByte() ([]byte, error)
- func (img *Imagik) ExportAsDataUrl() (string, error)
- func (img *Imagik) ExportAsFile(filename string) error
- func (img *Imagik) ExportAsPNGByte() ([]byte, error)
- func (img *Imagik) ExportAsPNGByteWithCompLevel(compLevel png.CompressionLevel) ([]byte, error)
- func (img *Imagik) ExportAsPNGDataUrl() (string, error)
- func (img *Imagik) ExportAsPNGFile(filename string) error
- func (img *Imagik) IsSquare() bool
- func (img *Imagik) LoadFromByte(b []byte) error
- func (img *Imagik) LoadFromFile(filename string) error
- func (img *Imagik) LoadFromUrl(url string, headers map[string]string) error
- func (img *Imagik) Resize(w int, h int)
- func (img *Imagik) Rotation() int
- func (img *Imagik) SquareThumbnailAsPNGByte(size int) ([]byte, error)
- func (img *Imagik) ThumbnailAsByte(w int, h int) ([]byte, error)
- func (img *Imagik) ThumbnailAsFile(filename string, w int, h int) error
Constants ¶
View Source
const ( RotateSquare = 0 RotatePortrait = 1 RotateLandscape = 2 )
View Source
const MaxTimeout = 10
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Imagik ¶
func (*Imagik) CropCenter ¶
func (*Imagik) ExportAsByte ¶
func (*Imagik) ExportAsDataUrl ¶
func (*Imagik) ExportAsFile ¶
func (*Imagik) ExportAsPNGByte ¶
func (*Imagik) ExportAsPNGByteWithCompLevel ¶
func (img *Imagik) ExportAsPNGByteWithCompLevel(compLevel png.CompressionLevel) ([]byte, error)
func (*Imagik) ExportAsPNGDataUrl ¶
func (*Imagik) ExportAsPNGFile ¶
func (*Imagik) LoadFromByte ¶
func (*Imagik) LoadFromFile ¶
func (*Imagik) LoadFromUrl ¶
func (*Imagik) SquareThumbnailAsPNGByte ¶
Click to show internal directories.
Click to hide internal directories.