Versions in this module Expand all Collapse all v2 v2.18.1 May 30, 2026 Changes in this version + const AccessLast + const AccessRandom + const AccessSequential + const AccessSequentialUnbuffered + const DefaultFont + const GaussBlurDefaultMinAMpl + var ErrUnsupportedImageFormat = errors.New("unsupported image format") + var GenericGrayGamma22ICCProfilePath = genericGrayGamma22ICCProfilePathToken + var ImageTypes = map[ImageType]string + var MajorVersion = int(C.vips_version(0)) + var MicroVersion = int(C.vips_version(2)) + var MinorVersion = int(C.vips_version(1)) + var SGrayV2MicroICCProfilePath = sGrayV2MicroICCProfilePathToken + var SRGBIEC6196621ICCProfilePath = sRGBIEC6196621ICCProfilePathToken + var SRGBV2MicroICCProfilePath = sRGBV2MicroICCProfilePathToken + var Version = C.GoString(C.vips_version_string()) + func AssertNoLeaks(t testing.TB) + func ClearCache() + func GetGenericGrayGamma22ICCProfilePath() (string, error) + func GetSGrayV2MicroICCProfilePath() (string, error) + func GetSRGBIEC6196621ICCProfilePath() (string, error) + func GetSRGBV2MicroICCProfilePath() (string, error) + func IsTypeSupported(imageType ImageType) bool + func LoggingSettings(handler LoggingHandlerFunction, verbosity LogLevel) + func NewInterpolate(name string) (*C.VipsInterpolate, error) + func OpenImageRefs() int64 + func Pixelate(imageRef *ImageRef, factor float64) (err error) + func PrintCache() + func PrintObjectReport(label string) + func ReadRuntimeStats(stats *RuntimeStats) + func ReadVipsMemStats(stats *MemoryStats) + func Shutdown() + func ShutdownThread() + func Startup(config *Config) error + type AffineOptions struct + Background []float64 + Extend *ExtendStrategy + Idx *float64 + Idy *float64 + Interpolate *C.VipsInterpolate + Oarea []int + Odx *float64 + Ody *float64 + Premultiplied *bool + type Align int + const AlignCenter + const AlignHigh + const AlignLow + type Angle int + const Angle0 + const Angle180 + const Angle270 + const Angle90 + func GetRotationAngleFromExif(orientation int) (Angle, bool) + type Angle45 int + const Angle45_0 + const Angle45_135 + const Angle45_180 + const Angle45_225 + const Angle45_270 + const Angle45_315 + const Angle45_45 + const Angle45_90 + type ArrayjoinOptions struct + Across *int + Background []float64 + Halign *Align + Hspacing *int + Shim *int + Valign *Align + Vspacing *int + type AvifExportParams struct + Bitdepth int + Effort int + Lossless bool + Quality int + Speed int + StripMetadata bool + func NewAvifExportParams() *AvifExportParams + type BandFormat int + const BandFormatChar + const BandFormatComplex + const BandFormatDouble + const BandFormatDpComplex + const BandFormatFloat + const BandFormatInt + const BandFormatNotSet + const BandFormatShort + const BandFormatUchar + const BandFormatUint + const BandFormatUshort + type BandfoldOptions struct + Factor *int + type BandrankOptions struct + Index *int + type BandunfoldOptions struct + Factor *int + type BlackOptions struct + Bands *int + type BlendMode int + const BlendModeAdd + const BlendModeAtop + const BlendModeClear + const BlendModeColorBurn + const BlendModeColorDodge + const BlendModeDarken + const BlendModeDest + const BlendModeDestAtop + const BlendModeDestIn + const BlendModeDestOut + const BlendModeDestOver + const BlendModeDifference + const BlendModeExclusion + const BlendModeHardLight + const BlendModeIn + const BlendModeLighten + const BlendModeMultiply + const BlendModeOut + const BlendModeOver + const BlendModeOverlay + const BlendModeSaturate + const BlendModeScreen + const BlendModeSoftLight + const BlendModeSource + const BlendModeXOR + type BoolParameter struct + func (p *BoolParameter) Get() bool + func (p *BoolParameter) Set(v bool) + type CacheOptions struct + MaxTiles *int + TileHeight *int + TileWidth *int + type CannyOptions struct + Precision *Precision + Sigma *float64 + type CastOptions struct + Shift *bool + type ClampOptions struct + Max *float64 + Min *float64 + type Coding int + const CodingError + const CodingLABQ + const CodingNone + const CodingRAD + type Color struct + B uint8 + G uint8 + R uint8 + type ColorRGBA struct + A uint8 + B uint8 + G uint8 + R uint8 + type Combine int + const CombineMax + const CombineMin + const CombineSum + type CombineMode int + const CombineModeAdd + const CombineModeSet + type CompassOptions struct + Angle *Angle45 + Cluster *int + Combine *Combine + Layers *int + Precision *Precision + Times *int + type Composite2Options struct + CompositingSpace *Interpretation + Premultiplied *bool + X *int + Y *int + type Config struct + CacheTrace bool + CollectStats bool + ConcurrencyLevel int + MaxCacheFiles int + MaxCacheMem int + MaxCacheSize int + ReportLeaks bool + type ConvOptions struct + Cluster *int + Layers *int + Precision *Precision + type ConvaOptions struct + Cluster *int + Layers *int + type ConvasepOptions struct + Layers *int + type ConvsepOptions struct + Cluster *int + Layers *int + Precision *Precision + type CopyOptions struct + Bands *int + Coding *Coding + Format *BandFormat + Height *int + Interpretation *Interpretation + Width *int + Xoffset *int + Xres *float64 + Yoffset *int + Yres *float64 + type Direction int + const DirectionHorizontal + const DirectionVertical + type ExportParams struct + Compression int + Effort int + Format ImageType + Interlaced bool + Lossless bool + OptimizeCoding bool + OptimizeScans bool + OvershootDeringing bool + Quality int + QuantTable int + Speed int + StripMetadata bool + SubsampleMode SubsampleMode + TrellisQuant bool + func NewDefaultExportParams() *ExportParams + func NewDefaultJPEGExportParams() *ExportParams + func NewDefaultPNGExportParams() *ExportParams + func NewDefaultWEBPExportParams() *ExportParams + type ExtendStrategy int + const ExtendBackground + const ExtendBlack + const ExtendCopy + const ExtendMirror + const ExtendRepeat + const ExtendWhite + type ExtractBandOptions struct + N *int + type EyeOptions struct + Factor *float64 + Uchar *bool + type FailOn int + const FailOnError + const FailOnNone + const FailOnTruncated + const FailOnWarning + type FlattenOptions struct + Background []float64 + MaxAlpha *float64 + type Float64Parameter struct + func (p *Float64Parameter) Get() float64 + func (p *Float64Parameter) Set(v float64) + type ForeignKeep int + type GammaOptions struct + Exponent *float64 + type GaussblurOptions struct + MinAmpl *float64 + Precision *Precision + type GaussmatOptions struct + Precision *Precision + Separable *bool + type GaussnoiseOptions struct + Mean *float64 + Seed *int + Sigma *float64 + type GifExportParams struct + Bitdepth int + Dither float64 + Effort int + Quality int + StripMetadata bool + func NewGifExportParams() *GifExportParams + type GlobalbalanceOptions struct + Gamma *float64 + IntOutput *bool + type Gravity int + const GravityCentre + const GravityEast + const GravityNorth + const GravityNorthEast + const GravityNorthWest + const GravitySouth + const GravitySouthEast + const GravitySouthWest + const GravityWest + type GravityOptions struct + Background []float64 + Extend *ExtendStrategy + type GreyOptions struct + Uchar *bool + type HeifExportParams struct + Bitdepth int + Effort int + Lossless bool + Quality int + func NewHeifExportParams() *HeifExportParams + type HistEqualOptions struct + Band *int + type HistFindIndexedOptions struct + Combine *Combine + type HistFindNdimOptions struct + Bins *int + type HistFindOptions struct + Band *int + type HistLocalOptions struct + MaxSlope *int + type HoughCircleOptions struct + MaxRadius *int + MinRadius *int + Scale *int + type HoughLineOptions struct + Height *int + Width *int + type IccExportOptions struct + BlackPointCompensation *bool + Depth *int + Intent *Intent + OutputProfile *string + Pcs *int + type IccImportOptions struct + BlackPointCompensation *bool + Embedded *bool + InputProfile *string + Intent *Intent + Pcs *int + type IdentityOptions struct + Bands *int + Size *int + Ushort *bool + type IfthenelseOptions struct + Blend *bool + type ImageComposite struct + BlendMode BlendMode + Image *ImageRef + X int + Y int + type ImageMetadata struct + Colorspace Interpretation + Format ImageType + Height int + Orientation int + Pages int + Width int + type ImageRef struct + func Black(width, height int) (*ImageRef, error) + func Grey(width, height int, uchar bool) (*ImageRef, error) + func Identity(ushort bool) (*ImageRef, error) + func LoadImageFromBuffer(buf []byte, params *ImportParams) (*ImageRef, error) + func LoadImageFromFile(file string, params *ImportParams) (*ImageRef, error) + func LoadThumbnailFromBuffer(buf []byte, width, height int, crop Interesting, size Size, ...) (*ImageRef, error) + func LoadThumbnailFromFile(file string, width, height int, crop Interesting, size Size, ...) (*ImageRef, error) + func NewImageFromBuffer(buf []byte) (*ImageRef, error) + func NewImageFromFile(file string) (*ImageRef, error) + func NewImageFromGoImage(img image.Image) (*ImageRef, error) + func NewImageFromReader(r io.Reader) (*ImageRef, error) + func NewThumbnailFromBuffer(buf []byte, width, height int, crop Interesting) (*ImageRef, error) + func NewThumbnailFromFile(file string, width, height int, crop Interesting) (*ImageRef, error) + func NewThumbnailWithSizeFromBuffer(buf []byte, width, height int, crop Interesting, size Size) (*ImageRef, error) + func NewThumbnailWithSizeFromFile(file string, width, height int, crop Interesting, size Size) (*ImageRef, error) + func NewTransparentCanvas(width, height int) (*ImageRef, error) + func Text(params *TextParams) (*ImageRef, error) + func XYZ(width, height int) (*ImageRef, error) + func (r *ImageRef) Abs() error + func (r *ImageRef) Add(addend *ImageRef) error + func (r *ImageRef) AddAlpha() error + func (r *ImageRef) ArrayJoin(images []*ImageRef, across int) error + func (r *ImageRef) AutoRotate() error + func (r *ImageRef) Average() (float64, error) + func (r *ImageRef) Background() ([]float64, error) + func (r *ImageRef) BandFormat() BandFormat + func (r *ImageRef) BandJoin(images ...*ImageRef) error + func (r *ImageRef) BandJoinConst(constants []float64) error + func (r *ImageRef) BandSplit() ([]*ImageRef, error) + func (r *ImageRef) Bands() int + func (r *ImageRef) Cast(format BandFormat) error + func (r *ImageRef) Close() + func (r *ImageRef) Coding() Coding + func (r *ImageRef) ColorSpace() Interpretation + func (r *ImageRef) Composite(overlay *ImageRef, mode BlendMode, x, y int) error + func (r *ImageRef) CompositeMulti(ins []*ImageComposite) error + func (r *ImageRef) Copy() (*ImageRef, error) + func (r *ImageRef) CopyChangingInterpretation(interpretation Interpretation) (*ImageRef, error) + func (r *ImageRef) CopyChangingResolution(xres, yres float64) (*ImageRef, error) + func (r *ImageRef) Crop(left int, top int, width int, height int) error + func (r *ImageRef) Divide(denominator *ImageRef) error + func (r *ImageRef) DrawRect(ink ColorRGBA, left int, top int, width int, height int, fill bool) error + func (r *ImageRef) Embed(left, top, width, height int, extend ExtendStrategy) error + func (r *ImageRef) EmbedBackground(left, top, width, height int, backgroundColor *Color) error + func (r *ImageRef) EmbedBackgroundRGBA(left, top, width, height int, backgroundColor *ColorRGBA) error + func (r *ImageRef) Export(params *ExportParams) ([]byte, *ImageMetadata, error) + func (r *ImageRef) ExportAvif(params *AvifExportParams) ([]byte, *ImageMetadata, error) + func (r *ImageRef) ExportGIF(params *GifExportParams) ([]byte, *ImageMetadata, error) + func (r *ImageRef) ExportHeif(params *HeifExportParams) ([]byte, *ImageMetadata, error) + func (r *ImageRef) ExportJp2k(params *Jp2kExportParams) ([]byte, *ImageMetadata, error) + func (r *ImageRef) ExportJpeg(params *JpegExportParams) ([]byte, *ImageMetadata, error) + func (r *ImageRef) ExportJxl(params *JxlExportParams) ([]byte, *ImageMetadata, error) + func (r *ImageRef) ExportMagick(params *MagickExportParams) ([]byte, *ImageMetadata, error) + func (r *ImageRef) ExportNative() ([]byte, *ImageMetadata, error) + func (r *ImageRef) ExportPng(params *PngExportParams) ([]byte, *ImageMetadata, error) + func (r *ImageRef) ExportTiff(params *TiffExportParams) ([]byte, *ImageMetadata, error) + func (r *ImageRef) ExportWebp(params *WebpExportParams) ([]byte, *ImageMetadata, error) + func (r *ImageRef) ExtractArea(left, top, width, height int) error + func (r *ImageRef) ExtractBand(band int, num int) error + func (r *ImageRef) ExtractBandToImage(band int, num int) (*ImageRef, error) + func (r *ImageRef) FindTrim(threshold float64, backgroundColor *Color) (int, int, int, int, error) + func (r *ImageRef) Flatten(backgroundColor *Color) error + func (r *ImageRef) Flip(direction Direction) error + func (r *ImageRef) Format() ImageType + func (r *ImageRef) Gamma(gamma float64) error + func (r *ImageRef) GaussianBlur(sigmas ...float64) error + func (r *ImageRef) GetAsString(name string) string + func (r *ImageRef) GetBlob(name string) []byte + func (r *ImageRef) GetDouble(name string) float64 + func (r *ImageRef) GetExif() map[string]string + func (r *ImageRef) GetFields() []string + func (r *ImageRef) GetICCProfile() []byte + func (r *ImageRef) GetInt(name string) int + func (r *ImageRef) GetOrientation() int + func (r *ImageRef) GetPageHeight() int + func (r *ImageRef) GetPages() int + func (r *ImageRef) GetPoint(x int, y int) ([]float64, error) + func (r *ImageRef) GetString(name string) string + func (r *ImageRef) Gravity(gravity Gravity, width int, height int) error + func (r *ImageRef) Grid(tileHeight, across, down int) error + func (r *ImageRef) HasAlpha() bool + func (r *ImageRef) HasExif() bool + func (r *ImageRef) HasICCProfile() bool + func (r *ImageRef) HasIPTC() bool + func (r *ImageRef) HasProfile() bool + func (r *ImageRef) Height() int + func (r *ImageRef) HistogramCumulative() error + func (r *ImageRef) HistogramEntropy() (float64, error) + func (r *ImageRef) HistogramFind() error + func (r *ImageRef) HistogramNormalise() error + func (r *ImageRef) ImageFields() []string + func (r *ImageRef) Insert(sub *ImageRef, x, y int, expand bool, background *ColorRGBA) error + func (r *ImageRef) Interpretation() Interpretation + func (r *ImageRef) Invert() error + func (r *ImageRef) IsColorSpaceSupported() bool + func (r *ImageRef) Join(in *ImageRef, dir Direction) error + func (r *ImageRef) Label(labelParams *LabelParams) error + func (r *ImageRef) Linear(a, b []float64) error + func (r *ImageRef) Linear1(a, b float64) error + func (r *ImageRef) Loop() int + func (r *ImageRef) Mapim(index *ImageRef) error + func (r *ImageRef) Maplut(lut *ImageRef) error + func (r *ImageRef) Metadata() *ImageMetadata + func (r *ImageRef) Min() (float64, int, int, error) + func (r *ImageRef) Modulate(brightness, saturation, hue float64) error + func (r *ImageRef) ModulateHSV(brightness, saturation float64, hue int) error + func (r *ImageRef) Multiply(multiplier *ImageRef) error + func (r *ImageRef) OffsetX() int + func (r *ImageRef) OffsetY() int + func (r *ImageRef) OptimizeICCProfile() error + func (r *ImageRef) Orientation() int + func (r *ImageRef) OriginalFormat() ImageType + func (r *ImageRef) PageDelay() ([]int, error) + func (r *ImageRef) PageHeight() int + func (r *ImageRef) Pages() int + func (r *ImageRef) PremultiplyAlpha() error + func (r *ImageRef) Project() (*ImageRef, *ImageRef, error) + func (r *ImageRef) Rank(width int, height int, index int) error + func (r *ImageRef) Recomb(matrix [][]float64) error + func (r *ImageRef) RemoveICCProfile() error + func (r *ImageRef) RemoveMetadata(keep ...string) error + func (r *ImageRef) RemoveOrientation() error + func (r *ImageRef) Replicate(across int, down int) error + func (r *ImageRef) ResX() float64 + func (r *ImageRef) ResY() float64 + func (r *ImageRef) Resize(scale float64, kernel Kernel) error + func (r *ImageRef) ResizeWithVScale(hScale, vScale float64, kernel Kernel) error + func (r *ImageRef) Rotate(angle Angle) error + func (r *ImageRef) SetBlob(name string, data []byte) + func (r *ImageRef) SetDouble(name string, f float64) + func (r *ImageRef) SetInt(name string, i int) + func (r *ImageRef) SetLoop(loop int) error + func (r *ImageRef) SetOrientation(orientation int) error + func (r *ImageRef) SetPageDelay(delay []int) error + func (r *ImageRef) SetPageHeight(height int) error + func (r *ImageRef) SetPages(pages int) error + func (r *ImageRef) SetString(name string, str string) + func (r *ImageRef) Sharpen(sigma float64, x1 float64, m2 float64) error + func (r *ImageRef) Similarity(scale float64, angle float64, backgroundColor *ColorRGBA, idx float64, ...) error + func (r *ImageRef) SmartCrop(width int, height int, interesting Interesting) error + func (r *ImageRef) Sobel() error + func (r *ImageRef) Stats() error + func (r *ImageRef) Subtract(in2 *ImageRef) error + func (r *ImageRef) Thumbnail(width, height int, crop Interesting) error + func (r *ImageRef) ThumbnailWithSize(width, height int, crop Interesting, size Size) error + func (r *ImageRef) ToBytes() ([]byte, error) + func (r *ImageRef) ToColorSpace(interpretation Interpretation) error + func (r *ImageRef) ToGoImage() (image.Image, error) + func (r *ImageRef) ToImage(params *ExportParams) (image.Image, error) + func (r *ImageRef) TransformICCProfile(outputProfilePath string) error + func (r *ImageRef) TransformICCProfileWithFallback(targetProfilePath, fallbackProfilePath string) error + func (r *ImageRef) UnpremultiplyAlpha() error + func (r *ImageRef) Width() int + func (r *ImageRef) Zoom(xFactor int, yFactor int) error + type ImageType int + const ImageTypeAVIF + const ImageTypeBMP + const ImageTypeGIF + const ImageTypeHEIF + const ImageTypeJP2K + const ImageTypeJPEG + const ImageTypeJXL + const ImageTypeMagick + const ImageTypePDF + const ImageTypePNG + const ImageTypePSD + const ImageTypeSVG + const ImageTypeTIFF + const ImageTypeUnknown + const ImageTypeWEBP + func DetermineImageType(buf []byte) ImageType + func (i ImageType) FileExt() string + type ImportParams struct + Access IntParameter + AutoRotate BoolParameter + Density IntParameter + FailOnError BoolParameter + ForceImageType ImageType + HeifThumbnail BoolParameter + JpegShrinkFactor IntParameter + NumPages IntParameter + Page IntParameter + SvgUnlimited BoolParameter + WebpScaleFactor Float64Parameter + func NewImportParams() *ImportParams + func (i *ImportParams) OptionString() string + type InsertOptions struct + Background []float64 + Expand *bool + type IntParameter struct + func (p *IntParameter) Get() int + func (p *IntParameter) Set(v int) + type Intent int + const IntentAbsolute + const IntentLast + const IntentPerceptual + const IntentRelative + const IntentSaturation + type Interesting int + const InterestingAll + const InterestingAttention + const InterestingCentre + const InterestingEntropy + const InterestingHigh + const InterestingLast + const InterestingLow + const InterestingNone + type Interpretation int + const InterpretationBW + const InterpretationCMC + const InterpretationCMYK + const InterpretationError + const InterpretationFourier + const InterpretationGrey16 + const InterpretationHSV + const InterpretationHistogram + const InterpretationLAB + const InterpretationLABQ + const InterpretationLABS + const InterpretationLCH + const InterpretationMatrix + const InterpretationMultiband + const InterpretationRGB + const InterpretationRGB16 + const InterpretationSRGB + const InterpretationScRGB + const InterpretationXYZ + const InterpretationYXY + type InvertlutOptions struct + Size *int + type InvfftOptions struct + Real *bool + type JoinOptions struct + Align *Align + Background []float64 + Expand *bool + Shim *int + type Jp2kExportParams struct + Lossless bool + Quality int + SubsampleMode SubsampleMode + TileHeight int + TileWidth int + func NewJp2kExportParams() *Jp2kExportParams + type JpegExportParams struct + Interlace bool + OptimizeCoding bool + OptimizeScans bool + OvershootDeringing bool + Quality int + QuantTable int + StripMetadata bool + SubsampleMode SubsampleMode + TrellisQuant bool + func NewJpegExportParams() *JpegExportParams + type JxlExportParams struct + Distance float64 + Effort int + Lossless bool + Quality int + Tier int + func NewJxlExportParams() *JxlExportParams + type Kernel int + const KernelAuto + const KernelCubic + const KernelLanczos2 + const KernelLanczos3 + const KernelLinear + const KernelMitchell + const KernelNearest + type Lab2XYZOptions struct + Temp []float64 + type LabelParams struct + Alignment Align + Color Color + Font string + Height Scalar + OffsetX Scalar + OffsetY Scalar + Opacity float32 + Text string + Width Scalar + type LinearOptions struct + Uchar *bool + type LinecacheOptions struct + Access *int + Persistent *bool + Threaded *bool + TileHeight *int + type LogLevel int + const LogLevelCritical + const LogLevelDebug + const LogLevelError + const LogLevelInfo + const LogLevelMessage + const LogLevelWarning + type LoggingHandlerFunction func(messageDomain string, messageLevel LogLevel, message string) + type LogmatOptions struct + Precision *Precision + Separable *bool + type MagickExportParams struct + BitDepth int + Format string + OptimizeGifFrames bool + OptimizeGifTransparency bool + Quality int + func NewMagickExportParams() *MagickExportParams + type MapimOptions struct + Background []float64 + Extend *ExtendStrategy + Interpolate *C.VipsInterpolate + Premultiplied *bool + type MaplutOptions struct + Band *int + type MaskButterworthBandOptions struct + Nodc *bool + Optical *bool + Reject *bool + Uchar *bool + type MaskButterworthOptions struct + Nodc *bool + Optical *bool + Reject *bool + Uchar *bool + type MaskButterworthRingOptions struct + Nodc *bool + Optical *bool + Reject *bool + Uchar *bool + type MaskFractalOptions struct + Nodc *bool + Optical *bool + Reject *bool + Uchar *bool + type MaskGaussianBandOptions struct + Nodc *bool + Optical *bool + Reject *bool + Uchar *bool + type MaskGaussianOptions struct + Nodc *bool + Optical *bool + Reject *bool + Uchar *bool + type MaskGaussianRingOptions struct + Nodc *bool + Optical *bool + Reject *bool + Uchar *bool + type MaskIdealBandOptions struct + Nodc *bool + Optical *bool + Reject *bool + Uchar *bool + type MaskIdealOptions struct + Nodc *bool + Optical *bool + Reject *bool + Uchar *bool + type MaskIdealRingOptions struct + Nodc *bool + Optical *bool + Reject *bool + Uchar *bool + type MatchOptions struct + Harea *int + Hwindow *int + Interpolate *C.VipsInterpolate + Search *bool + type MemoryStats struct + Allocs int64 + Files int64 + Mem int64 + MemHigh int64 + type MergeOptions struct + Mblend *int + type Mosaic1Options struct + Harea *int + Hwindow *int + Interpolate *C.VipsInterpolate + Mblend *int + Search *bool + type MosaicOptions struct + Bandno *int + Harea *int + Hwindow *int + Mblend *int + type MsbOptions struct + Band *int + type OperationBoolean int + const OperationBooleanAnd + const OperationBooleanEor + const OperationBooleanLshift + const OperationBooleanOr + const OperationBooleanRshift + type OperationComplex int + const OperationComplexConj + const OperationComplexPolar + const OperationComplexRect + type OperationComplex2 int + const OperationComplex2CrossPhase + type OperationComplexget int + const OperationComplexgetImag + const OperationComplexgetReal + type OperationMath int + const OperationMathAcos + const OperationMathAsin + const OperationMathAtan + const OperationMathCos + const OperationMathExp + const OperationMathExp10 + const OperationMathLog + const OperationMathLog10 + const OperationMathSin + const OperationMathTan + type OperationMath2 int + const OperationMath2Atan2 + const OperationMath2Pow + const OperationMath2Wop + type OperationMorphology int + const OperationMorphologyDilate + const OperationMorphologyErode + type OperationRelational int + const OperationRelationalEqual + const OperationRelationalLess + const OperationRelationalLesseq + const OperationRelationalMore + const OperationRelationalMoreeq + const OperationRelationalNoteq + type OperationRound int + const OperationRoundCeil + const OperationRoundFloor + const OperationRoundRint + type Parameter struct + func (p *Parameter) IsSet() bool + type PerlinOptions struct + CellSize *int + Seed *int + Uchar *bool + type PngExportParams struct + Bitdepth int + Compression int + Dither float64 + Filter PngFilter + Interlace bool + Palette bool + Profile string + Quality int + StripMetadata bool + func NewPngExportParams() *PngExportParams + type PngFilter int + const PngFilterAll + const PngFilterAvg + const PngFilterNone + const PngFilterPaeth + const PngFilterSub + const PngFilterUo + type PreMultiplicationState struct + type Precision int + const PrecisionApproximate + const PrecisionFloat + const PrecisionInteger + type PremultiplyOptions struct + MaxAlpha *float64 + type QuadraticOptions struct + Interpolate *C.VipsInterpolate + type ReduceOptions struct + Gap *float64 + Kernel *Kernel + type ReducehOptions struct + Gap *float64 + Kernel *Kernel + type ReducevOptions struct + Gap *float64 + Kernel *Kernel + type Rot45Options struct + Angle *Angle45 + type RotateOptions struct + Background []float64 + Idx *float64 + Idy *float64 + Interpolate *C.VipsInterpolate + Odx *float64 + Ody *float64 + type RuntimeStats struct + OperationCounts map[string]int64 + type ScRGB2BWOptions struct + Depth *int + type ScRGB2sRGBOptions struct + Depth *int + type Scalar struct + Relative bool + Value float64 + func ValueOf(value float64) Scalar + func (s *Scalar) Get(base int) float64 + func (s *Scalar) GetRounded(base int) int + func (s *Scalar) IsZero() bool + func (s *Scalar) Set(value float64) + func (s *Scalar) SetInt(value int) + func (s *Scalar) SetScale(f float64) + type ScaleOptions struct + Exp *float64 + Log *bool + type SequentialOptions struct + TileHeight *int + type SharpenOptions struct + M1 *float64 + M2 *float64 + Sigma *float64 + X1 *float64 + Y2 *float64 + Y3 *float64 + type ShrinkOptions struct + Ceil *bool + type ShrinkhOptions struct + Ceil *bool + type ShrinkvOptions struct + Ceil *bool + type SimilarityOptions struct + Angle *float64 + Background []float64 + Idx *float64 + Idy *float64 + Interpolate *C.VipsInterpolate + Odx *float64 + Ody *float64 + Scale *float64 + type SinesOptions struct + Hfreq *float64 + Uchar *bool + Vfreq *float64 + type Size int + const SizeBoth + const SizeDown + const SizeForce + const SizeLast + const SizeUp + type SmartcropOptions struct + Interesting *Interesting + Premultiplied *bool + type StdifOptions struct + A *float64 + B *float64 + M0 *float64 + S0 *float64 + type SubsampleMode int + const VipsForeignSubsampleAuto + const VipsForeignSubsampleLast + const VipsForeignSubsampleOff + const VipsForeignSubsampleOn + type SubsampleOptions struct + Point *bool + type TextParams struct + Alignment Align + DPI int + Font string + Height int + Justify bool + RGBA bool + Spacing int + Text string + Width int + Wrap TextWrap + type TextWrap int + const TextWrapChar + const TextWrapNone + const TextWrapWord + const TextWrapWordChar + type TiffCompression int + const TiffCompressionDeflate + const TiffCompressionFax4 + const TiffCompressionJpeg + const TiffCompressionLzw + const TiffCompressionNone + const TiffCompressionPackbits + const TiffCompressionWebp + const TiffCompressionZstd + type TiffExportParams struct + Compression TiffCompression + Predictor TiffPredictor + Pyramid bool + Quality int + StripMetadata bool + Tile bool + TileHeight int + TileWidth int + func NewTiffExportParams() *TiffExportParams + type TiffPredictor int + const TiffPredictorFloat + const TiffPredictorHorizontal + const TiffPredictorNone + type TilecacheOptions struct + Access *int + MaxTiles *int + Persistent *bool + Threaded *bool + TileHeight *int + TileWidth *int + type TonelutOptions struct + H *float64 + InMax *int + Lb *float64 + Lw *float64 + M *float64 + OutMax *int + Ph *float64 + Pm *float64 + Ps *float64 + S *float64 + type Transpose3dOptions struct + PageHeight *int + type UnpremultiplyOptions struct + AlphaBand *int + MaxAlpha *float64 + type WebpExportParams struct + IccProfile string + Lossless bool + MaxKeyFrames int + MinKeyFrames int + MinSize bool + NearLossless bool + Quality int + ReductionEffort int + StripMetadata bool + func NewWebpExportParams() *WebpExportParams + type WorleyOptions struct + CellSize *int + Seed *int + type WrapOptions struct + X *int + Y *int + type XYZ2LabOptions struct + Temp []float64 + type XyzOptions struct + Csize *int + Dsize *int + Esize *int + type ZoneOptions struct + Uchar *bool