Versions in this module Expand all Collapse all v1 v1.0.7 Jan 13, 2017 Changes in this version + func IsTypeNameSupportedSave(t string) bool + func IsTypeSupportedSave(t ImageType) bool + func VipsIsTypeSupportedSave(t ImageType) bool + type SupportedImageType struct + Load bool + Save bool v1.0.6 Nov 12, 2016 v1.0.5 Oct 1, 2016 Changes in this version + type Extend int + const ExtendBackground + const ExtendBlack + const ExtendCopy + const ExtendLast + const ExtendMirror + const ExtendRepeat + const ExtendWhite v1.0.4 Sep 29, 2016 v1.0.3 Sep 27, 2016 Changes in this version + var SupportedImageTypes = map[ImageType]bool + func IsImageTypeSupportedByVips(t ImageType) bool + func IsSVGImage(buf []byte) bool + func VipsIsTypeSupported(t ImageType) bool v1.0.2 Sep 27, 2016 Changes in this version + const VipsMajorVersion + const VipsMinorVersion type Angle + const D135 + const D235 + const D315 + const D45 type ImageType + const GIF + const PDF + const SVG v1.0.1 Jun 22, 2016 v1.0.0 Apr 21, 2016 Changes in this version + const MaxSize + const Quality + var WatermarkFont = "sans 10" type Direction + const Horizontal + const Vertical type Gravity + const GravityCentre + const GravityEast + const GravityNorth + const GravitySouth + const GravityWest type Interpolator + const Bicubic + const Bilinear + const Nohalo type Interpretation + const InterpretationBW + const InterpretationCMYK + const InterpretationError + const InterpretationGREY16 + const InterpretationLAB + const InterpretationMultiband + const InterpretationRGB + const InterpretationRGB16 + const InterpretationSRGB + const InterpretationScRGB + const InterpretationXYZ v0 v0.1.24 Mar 1, 2016 Changes in this version + const HasMagickSupport + const MAX_SIZE + const QUALITY + const Version + const VipsVersion + const WATERMARK_FONT + var ColorBlack = Color + var ImageTypes = map[ImageType]string + func ColourspaceIsSupported(buf []byte) (bool, error) + func DetermineImageTypeName(buf []byte) string + func ImageTypeName(t ImageType) string + func Initialize() + func IsTypeNameSupported(t string) bool + func IsTypeSupported(t ImageType) bool + func Read(path string) ([]byte, error) + func Resize(buf []byte, o Options) ([]byte, error) + func Shutdown() + func VipsDebugInfo() + func Write(path string, buf []byte) error + type Angle int + const D0 + const D180 + const D270 + const D90 + type Color struct + B uint8 + G uint8 + R uint8 + type Direction int + const HORIZONTAL + const VERTICAL + type GaussianBlur struct + MinAmpl float64 + Sigma float64 + type Gravity int + const CENTRE + const EAST + const NORTH + const SOUTH + const WEST + type Image struct + func NewImage(buf []byte) *Image + func (i *Image) Colourspace(c Interpretation) ([]byte, error) + func (i *Image) ColourspaceIsSupported() (bool, error) + func (i *Image) Convert(t ImageType) ([]byte, error) + func (i *Image) Crop(width, height int, gravity Gravity) ([]byte, error) + func (i *Image) CropByHeight(height int) ([]byte, error) + func (i *Image) CropByWidth(width int) ([]byte, error) + func (i *Image) Enlarge(width, height int) ([]byte, error) + func (i *Image) EnlargeAndCrop(width, height int) ([]byte, error) + func (i *Image) Extract(top, left, width, height int) ([]byte, error) + func (i *Image) Flip() ([]byte, error) + func (i *Image) Flop() ([]byte, error) + func (i *Image) ForceResize(width, height int) ([]byte, error) + func (i *Image) Image() []byte + func (i *Image) Interpretation() (Interpretation, error) + func (i *Image) Metadata() (ImageMetadata, error) + func (i *Image) Process(o Options) ([]byte, error) + func (i *Image) Resize(width, height int) ([]byte, error) + func (i *Image) ResizeAndCrop(width, height int) ([]byte, error) + func (i *Image) Rotate(a Angle) ([]byte, error) + func (i *Image) Size() (ImageSize, error) + func (i *Image) Thumbnail(pixels int) ([]byte, error) + func (i *Image) Type() string + func (i *Image) Watermark(w Watermark) ([]byte, error) + func (i *Image) Zoom(factor int) ([]byte, error) + type ImageMetadata struct + Alpha bool + Channels int + Colourspace string + Orientation int + Profile bool + Size ImageSize + Space string + Type string + func Metadata(buf []byte) (ImageMetadata, error) + type ImageSize struct + Height int + Width int + func Size(buf []byte) (ImageSize, error) + type ImageType int + const JPEG + const MAGICK + const PNG + const TIFF + const UNKNOWN + const WEBP + func DetermineImageType(buf []byte) ImageType + type Interpolator int + const BICUBIC + const BILINEAR + const NOHALO + func (i Interpolator) String() string + type Interpretation int + const INTERPRETATION_B_W + const INTERPRETATION_CMYK + const INTERPRETATION_ERROR + const INTERPRETATION_GREY16 + const INTERPRETATION_LAB + const INTERPRETATION_MULTIBAND + const INTERPRETATION_RGB + const INTERPRETATION_RGB16 + const INTERPRETATION_XYZ + const INTERPRETATION_sRGB + const INTERPRETATION_scRGB + func ImageInterpretation(buf []byte) (Interpretation, error) + type Options struct + AreaHeight int + AreaWidth int + Background Color + Compression int + Crop bool + Embed bool + Enlarge bool + Extend int + Flip bool + Flop bool + Force bool + GaussianBlur GaussianBlur + Gravity Gravity + Height int + Interlace bool + Interpolator Interpolator + Interpretation Interpretation + Left int + NoAutoRotate bool + NoProfile bool + Quality int + Rotate Angle + Sharpen Sharpen + Top int + Type ImageType + Watermark Watermark + Width int + Zoom int + type Sharpen struct + M1 float64 + M2 float64 + Radius int + X1 float64 + Y2 float64 + Y3 float64 + type VipsMemoryInfo struct + Allocations int64 + Memory int64 + MemoryHighwater int64 + func VipsMemory() VipsMemoryInfo + type Watermark struct + Background Color + DPI int + Font string + Margin int + NoReplicate bool + Opacity float32 + Text string + Width int