Documentation ¶
Index ¶
- type Image
- func (img Image) Blob() []byte
- func (img Image) Clone() Image
- func (img Image) Convert(ext string) (err error)
- func (img Image) Crop(w, h, x, y int) error
- func (img *Image) FromBlob(blob []byte) error
- func (img *Image) FromFile(filename string) error
- func (img *Image) FromWeb(url string) error
- func (img Image) GetExtension() (ext string)
- func (img Image) GetHeight() int
- func (img Image) GetWidth() int
- func (img Image) Resize(w, h int) error
- func (img Image) Watermark(watermark Image, horizontal, vertical float64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct {
*imagick.MagickWand
}
Image is an uncompressed image that must be convertd to blob before serving to a client.
func (Image) Clone ¶
Clone an image. Remember images and made clones need to be destroyed using Destroy().
func (Image) GetExtension ¶
Returns filename extension of the image e.g. jpg, gif, webp
Click to show internal directories.
Click to hide internal directories.