Documentation
¶
Overview ¶
Code generated by github.com/cshum/vipsgen from libvips 8.17.0; DO NOT EDIT.
Index ¶
- Constants
- func HasOperation(name string) bool
- func ProfileLoad(name string) ([]byte, error)
- func ReadVipsMemStats(stats *MemoryStats)
- func SetLogging(handler LoggingHandlerFunction, verbosity LogLevel)
- func Shutdown()
- func Startup(config *Config)
- type Access
- type AffineOptions
- type Align
- type AnalyzeloadOptions
- type Angle
- type Angle45
- type ArrayjoinOptions
- type BandFormat
- type BandfoldOptions
- type BandrankOptions
- type BandunfoldOptions
- type BlackOptions
- type BlendMode
- type CannyOptions
- type CastOptions
- type ClampOptions
- type Coding
- type ColourspaceOptions
- type Combine
- type CombineMode
- type CompassDirection
- type CompassOptions
- type Composite2Options
- type CompositeOptions
- type Config
- type ConvOptions
- type ConvaOptions
- type ConvasepOptions
- type ConvsepOptions
- type CopyOptions
- type CsvloadOptions
- type CsvloadSourceOptions
- type CsvsaveOptions
- type CsvsaveTargetOptions
- type Direction
- type DrawCircleOptions
- type DrawFloodOptions
- type DrawImageOptions
- type DrawRectOptions
- type DzContainer
- type DzDepth
- type DzLayout
- type DzsaveBufferOptions
- type DzsaveOptions
- type DzsaveTargetOptions
- type EmbedMultiPageOptions
- type EmbedOptions
- type Extend
- type ExtractBandOptions
- type EyeOptions
- type FailOn
- type FindTrimOptions
- type FitsloadOptions
- type FitssaveOptions
- type Flags
- type FlattenOptions
- type GammaOptions
- type GaussblurOptions
- type GaussmatOptions
- type GaussnoiseOptions
- type GetpointOptions
- type GifloadBufferOptions
- type GifloadOptions
- type GifloadSourceOptions
- type GifsaveBufferOptions
- type GifsaveOptions
- type GifsaveTargetOptions
- type GlobalbalanceOptions
- type GravityOptions
- type GreyOptions
- type HeifCompression
- type HeifEncoder
- type HeifloadBufferOptions
- type HeifloadOptions
- type HeifloadSourceOptions
- type HeifsaveBufferOptions
- type HeifsaveOptions
- type HeifsaveTargetOptions
- type HistEqualOptions
- type HistFindIndexedOptions
- type HistFindNdimOptions
- type HistFindOptions
- type HistLocalOptions
- type HoughCircleOptions
- type HoughLineOptions
- type IccExportOptions
- type IccImportOptions
- type IccTransformOptions
- type IdentityOptions
- type IfthenelseOptions
- type Image
- func NewAnalyzeload(filename string, options *AnalyzeloadOptions) (*Image, error)
- func NewArrayjoin(in []*Image, options *ArrayjoinOptions) (*Image, error)
- func NewBandjoin(in []*Image) (*Image, error)
- func NewBandrank(in []*Image, options *BandrankOptions) (*Image, error)
- func NewBlack(width int, height int, options *BlackOptions) (*Image, error)
- func NewComposite(in []*Image, mode []BlendMode, options *CompositeOptions) (*Image, error)
- func NewCsvload(filename string, options *CsvloadOptions) (*Image, error)
- func NewCsvloadSource(source *Source, options *CsvloadSourceOptions) (*Image, error)
- func NewEye(width int, height int, options *EyeOptions) (*Image, error)
- func NewFitsload(filename string, options *FitsloadOptions) (*Image, error)
- func NewFractsurf(width int, height int, fractalDimension float64) (*Image, error)
- func NewGaussmat(sigma float64, minAmpl float64, options *GaussmatOptions) (*Image, error)
- func NewGaussnoise(width int, height int, options *GaussnoiseOptions) (*Image, error)
- func NewGifload(filename string, options *GifloadOptions) (*Image, error)
- func NewGifloadBuffer(buf []byte, options *GifloadBufferOptions) (*Image, error)
- func NewGifloadSource(source *Source, options *GifloadSourceOptions) (*Image, error)
- func NewGrey(width int, height int, options *GreyOptions) (*Image, error)
- func NewHeifload(filename string, options *HeifloadOptions) (*Image, error)
- func NewHeifloadBuffer(buf []byte, options *HeifloadBufferOptions) (*Image, error)
- func NewHeifloadSource(source *Source, options *HeifloadSourceOptions) (*Image, error)
- func NewIdentity(options *IdentityOptions) (*Image, error)
- func NewImageFromBuffer(buf []byte, options *LoadOptions) (*Image, error)
- func NewImageFromFile(file string, options *LoadOptions) (*Image, error)
- func NewImageFromMemory(buf []byte, width, height, bands int) (*Image, error)
- func NewImageFromSource(s *Source, options *LoadOptions) (*Image, error)
- func NewJp2kload(filename string, options *Jp2kloadOptions) (*Image, error)
- func NewJp2kloadBuffer(buf []byte, options *Jp2kloadBufferOptions) (*Image, error)
- func NewJp2kloadSource(source *Source, options *Jp2kloadSourceOptions) (*Image, error)
- func NewJpegload(filename string, options *JpegloadOptions) (*Image, error)
- func NewJpegloadBuffer(buf []byte, options *JpegloadBufferOptions) (*Image, error)
- func NewJpegloadSource(source *Source, options *JpegloadSourceOptions) (*Image, error)
- func NewJxlload(filename string, options *JxlloadOptions) (*Image, error)
- func NewJxlloadBuffer(buf []byte, options *JxlloadBufferOptions) (*Image, error)
- func NewJxlloadSource(source *Source, options *JxlloadSourceOptions) (*Image, error)
- func NewLogmat(sigma float64, minAmpl float64, options *LogmatOptions) (*Image, error)
- func NewMagickload(filename string, options *MagickloadOptions) (*Image, error)
- func NewMagickloadBuffer(buf []byte, options *MagickloadBufferOptions) (*Image, error)
- func NewMaskButterworth(width int, height int, order float64, frequencyCutoff float64, ...) (*Image, error)
- func NewMaskButterworthBand(width int, height int, order float64, frequencyCutoffX float64, ...) (*Image, error)
- func NewMaskButterworthRing(width int, height int, order float64, frequencyCutoff float64, ...) (*Image, error)
- func NewMaskFractal(width int, height int, fractalDimension float64, options *MaskFractalOptions) (*Image, error)
- func NewMaskGaussian(width int, height int, frequencyCutoff float64, amplitudeCutoff float64, ...) (*Image, error)
- func NewMaskGaussianBand(width int, height int, frequencyCutoffX float64, frequencyCutoffY float64, ...) (*Image, error)
- func NewMaskGaussianRing(width int, height int, frequencyCutoff float64, amplitudeCutoff float64, ...) (*Image, error)
- func NewMaskIdeal(width int, height int, frequencyCutoff float64, options *MaskIdealOptions) (*Image, error)
- func NewMaskIdealBand(width int, height int, frequencyCutoffX float64, frequencyCutoffY float64, ...) (*Image, error)
- func NewMaskIdealRing(width int, height int, frequencyCutoff float64, ringwidth float64, ...) (*Image, error)
- func NewMatload(filename string, options *MatloadOptions) (*Image, error)
- func NewMatrixload(filename string, options *MatrixloadOptions) (*Image, error)
- func NewMatrixloadSource(source *Source, options *MatrixloadSourceOptions) (*Image, error)
- func NewNiftiload(filename string, options *NiftiloadOptions) (*Image, error)
- func NewNiftiloadSource(source *Source, options *NiftiloadSourceOptions) (*Image, error)
- func NewOpenexrload(filename string, options *OpenexrloadOptions) (*Image, error)
- func NewOpenslideload(filename string, options *OpenslideloadOptions) (*Image, error)
- func NewOpenslideloadSource(source *Source, options *OpenslideloadSourceOptions) (*Image, error)
- func NewPdfload(filename string, options *PdfloadOptions) (*Image, error)
- func NewPdfloadBuffer(buf []byte, options *PdfloadBufferOptions) (*Image, error)
- func NewPdfloadSource(source *Source, options *PdfloadSourceOptions) (*Image, error)
- func NewPerlin(width int, height int, options *PerlinOptions) (*Image, error)
- func NewPngload(filename string, options *PngloadOptions) (*Image, error)
- func NewPngloadBuffer(buf []byte, options *PngloadBufferOptions) (*Image, error)
- func NewPngloadSource(source *Source, options *PngloadSourceOptions) (*Image, error)
- func NewPpmload(filename string, options *PpmloadOptions) (*Image, error)
- func NewPpmloadBuffer(buf []byte, options *PpmloadBufferOptions) (*Image, error)
- func NewPpmloadSource(source *Source, options *PpmloadSourceOptions) (*Image, error)
- func NewRadload(filename string, options *RadloadOptions) (*Image, error)
- func NewRadloadBuffer(buf []byte, options *RadloadBufferOptions) (*Image, error)
- func NewRadloadSource(source *Source, options *RadloadSourceOptions) (*Image, error)
- func NewRawload(filename string, width int, height int, bands int, options *RawloadOptions) (*Image, error)
- func NewSdf(width int, height int, shape SdfShape, options *SdfOptions) (*Image, error)
- func NewSines(width int, height int, options *SinesOptions) (*Image, error)
- func NewSum(in []*Image) (*Image, error)
- func NewSvgload(filename string, options *SvgloadOptions) (*Image, error)
- func NewSvgloadBuffer(buf []byte, options *SvgloadBufferOptions) (*Image, error)
- func NewSvgloadSource(source *Source, options *SvgloadSourceOptions) (*Image, error)
- func NewSwitch(tests []*Image) (*Image, error)
- func NewSystem(cmdFormat string, options *SystemOptions) (*Image, error)
- func NewText(text string, options *TextOptions) (*Image, error)
- func NewThumbnail(filename string, width int, options *ThumbnailOptions) (*Image, error)
- func NewThumbnailBuffer(buf []byte, width int, options *ThumbnailBufferOptions) (*Image, error)
- func NewThumbnailSource(source *Source, width int, options *ThumbnailSourceOptions) (*Image, error)
- func NewTiffload(filename string, options *TiffloadOptions) (*Image, error)
- func NewTiffloadBuffer(buf []byte, options *TiffloadBufferOptions) (*Image, error)
- func NewTiffloadSource(source *Source, options *TiffloadSourceOptions) (*Image, error)
- func NewTonelut(options *TonelutOptions) (*Image, error)
- func NewVipsload(filename string, options *VipsloadOptions) (*Image, error)
- func NewVipsloadSource(source *Source, options *VipsloadSourceOptions) (*Image, error)
- func NewWebpload(filename string, options *WebploadOptions) (*Image, error)
- func NewWebploadBuffer(buf []byte, options *WebploadBufferOptions) (*Image, error)
- func NewWebploadSource(source *Source, options *WebploadSourceOptions) (*Image, error)
- func NewWorley(width int, height int, options *WorleyOptions) (*Image, error)
- func NewXyz(width int, height int, options *XyzOptions) (*Image, error)
- func NewZone(width int, height int, options *ZoneOptions) (*Image, error)
- func (r *Image) Abs() error
- func (r *Image) Add(right *Image) error
- func (r *Image) Addalpha() error
- func (r *Image) Affine(a float64, b float64, c float64, d float64, options *AffineOptions) error
- func (r *Image) Autorot() error
- func (r *Image) Avg() (float64, error)
- func (r *Image) Background() ([]float64, error)
- func (r *Image) BandFormat() BandFormat
- func (r *Image) Bandbool(boolean OperationBoolean) error
- func (r *Image) Bandfold(options *BandfoldOptions) error
- func (r *Image) BandjoinConst(c []float64) error
- func (r *Image) Bandmean() error
- func (r *Image) Bands() int
- func (r *Image) Bandunfold(options *BandunfoldOptions) error
- func (r *Image) Boolean(right *Image, boolean OperationBoolean) error
- func (r *Image) BooleanConst(boolean OperationBoolean, c []float64) error
- func (r *Image) Buildlut() error
- func (r *Image) Byteswap() error
- func (r *Image) CMC2LCh() error
- func (r *Image) CMYK2XYZ() error
- func (r *Image) Canny(options *CannyOptions) error
- func (r *Image) Case(cases []*Image) error
- func (r *Image) Cast(format BandFormat, options *CastOptions) error
- func (r *Image) Clamp(options *ClampOptions) error
- func (r *Image) Close()
- func (r *Image) Coding() Coding
- func (r *Image) Colourspace(space Interpretation, options *ColourspaceOptions) error
- func (r *Image) Compass(mask *Image, options *CompassOptions) error
- func (r *Image) Complex(cmplx OperationComplex) error
- func (r *Image) Complex2(right *Image, cmplx OperationComplex2) error
- func (r *Image) Complexform(right *Image) error
- func (r *Image) Complexget(get OperationComplexget) error
- func (r *Image) Composite2(overlay *Image, mode BlendMode, options *Composite2Options) error
- func (r *Image) Conv(mask *Image, options *ConvOptions) error
- func (r *Image) Conva(mask *Image, options *ConvaOptions) error
- func (r *Image) Convasep(mask *Image, options *ConvasepOptions) error
- func (r *Image) Convf(mask *Image) error
- func (r *Image) Convi(mask *Image) error
- func (r *Image) Convsep(mask *Image, options *ConvsepOptions) error
- func (r *Image) Copy(options *CopyOptions) (*Image, error)
- func (r *Image) Countlines(direction Direction) (float64, error)
- func (r *Image) Csvsave(filename string, options *CsvsaveOptions) error
- func (r *Image) CsvsaveTarget(target *Target, options *CsvsaveTargetOptions) error
- func (r *Image) DE00(right *Image) error
- func (r *Image) DE76(right *Image) error
- func (r *Image) DECMC(right *Image) error
- func (r *Image) Deviate() (float64, error)
- func (r *Image) Divide(right *Image) error
- func (r *Image) DrawCircle(ink []float64, cx int, cy int, radius int, options *DrawCircleOptions) error
- func (r *Image) DrawFlood(ink []float64, x int, y int, options *DrawFloodOptions) error
- func (r *Image) DrawImage(sub *Image, x int, y int, options *DrawImageOptions) error
- func (r *Image) DrawLine(ink []float64, x1 int, y1 int, x2 int, y2 int) error
- func (r *Image) DrawMask(ink []float64, mask *Image, x int, y int) error
- func (r *Image) DrawRect(ink []float64, left int, top int, width int, height int, ...) error
- func (r *Image) DrawSmudge(left int, top int, width int, height int) error
- func (r *Image) Dzsave(filename string, options *DzsaveOptions) error
- func (r *Image) DzsaveBuffer(options *DzsaveBufferOptions) ([]byte, error)
- func (r *Image) DzsaveTarget(target *Target, options *DzsaveTargetOptions) error
- func (r *Image) Embed(x int, y int, width int, height int, options *EmbedOptions) error
- func (r *Image) EmbedMultiPage(left, top, width, height int, options *EmbedMultiPageOptions) error
- func (r *Image) Exif() map[string]string
- func (r *Image) ExtractArea(left int, top int, width int, height int) error
- func (r *Image) ExtractAreaMultiPage(left, top, width, height int) error
- func (r *Image) ExtractBand(band int, options *ExtractBandOptions) error
- func (r *Image) Falsecolour() error
- func (r *Image) Fastcor(ref *Image) error
- func (r *Image) FillNearest() (*Image, error)
- func (r *Image) FindTrim(options *FindTrimOptions) (int, int, int, int, error)
- func (r *Image) Fitssave(filename string, options *FitssaveOptions) error
- func (r *Image) Flatten(options *FlattenOptions) error
- func (r *Image) Flip(direction Direction) error
- func (r *Image) Float2rad() error
- func (r *Image) Format() ImageType
- func (r *Image) Freqmult(mask *Image) error
- func (r *Image) Fwfft() error
- func (r *Image) Gamma(options *GammaOptions) error
- func (r *Image) Gaussblur(sigma float64, options *GaussblurOptions) error
- func (r *Image) GetArrayDouble(name string) ([]float64, error)
- func (r *Image) GetArrayInt(name string) ([]int, error)
- func (r *Image) GetAsString(name string) (string, error)
- func (r *Image) GetBlob(name string) ([]byte, error)
- func (r *Image) GetDouble(name string) (float64, error)
- func (r *Image) GetFields() []string
- func (r *Image) GetICCProfile() ([]byte, bool)
- func (r *Image) GetInt(name string) (int, error)
- func (r *Image) GetString(name string) (string, error)
- func (r *Image) Getpoint(x int, y int, options *GetpointOptions) ([]float64, error)
- func (r *Image) Gifsave(filename string, options *GifsaveOptions) error
- func (r *Image) GifsaveBuffer(options *GifsaveBufferOptions) ([]byte, error)
- func (r *Image) GifsaveTarget(target *Target, options *GifsaveTargetOptions) error
- func (r *Image) Globalbalance(options *GlobalbalanceOptions) error
- func (r *Image) Gravity(direction CompassDirection, width int, height int, options *GravityOptions) error
- func (r *Image) Grid(tileHeight int, across int, down int) error
- func (r *Image) HSV2sRGB() error
- func (r *Image) HasAlpha() bool
- func (r *Image) HasField(name string) bool
- func (r *Image) HasICCProfile() bool
- func (r *Image) HasIPTC() bool
- func (r *Image) Heifsave(filename string, options *HeifsaveOptions) error
- func (r *Image) HeifsaveBuffer(options *HeifsaveBufferOptions) ([]byte, error)
- func (r *Image) HeifsaveTarget(target *Target, options *HeifsaveTargetOptions) error
- func (r *Image) Height() int
- func (r *Image) HistCum() error
- func (r *Image) HistEntropy() (float64, error)
- func (r *Image) HistEqual(options *HistEqualOptions) error
- func (r *Image) HistFind(options *HistFindOptions) error
- func (r *Image) HistFindIndexed(index *Image, options *HistFindIndexedOptions) error
- func (r *Image) HistFindNdim(options *HistFindNdimOptions) error
- func (r *Image) HistIsmonotonic() (bool, error)
- func (r *Image) HistLocal(width int, height int, options *HistLocalOptions) error
- func (r *Image) HistMatch(ref *Image) error
- func (r *Image) HistNorm() error
- func (r *Image) HistPlot() error
- func (r *Image) HoughCircle(options *HoughCircleOptions) error
- func (r *Image) HoughLine(options *HoughLineOptions) error
- func (r *Image) IccExport(options *IccExportOptions) error
- func (r *Image) IccImport(options *IccImportOptions) error
- func (r *Image) IccTransform(outputProfile string, options *IccTransformOptions) error
- func (r *Image) Ifthenelse(in1 *Image, in2 *Image, options *IfthenelseOptions) error
- func (r *Image) Insert(sub *Image, x int, y int, options *InsertOptions) error
- func (r *Image) Interpretation() Interpretation
- func (r *Image) Invert() error
- func (r *Image) Invertlut(options *InvertlutOptions) error
- func (r *Image) Invfft(options *InvfftOptions) error
- func (r *Image) IsColorSpaceSupported() bool
- func (r *Image) Join(in2 *Image, direction Direction, options *JoinOptions) error
- func (r *Image) Jp2ksave(filename string, options *Jp2ksaveOptions) error
- func (r *Image) Jp2ksaveBuffer(options *Jp2ksaveBufferOptions) ([]byte, error)
- func (r *Image) Jp2ksaveTarget(target *Target, options *Jp2ksaveTargetOptions) error
- func (r *Image) Jpegsave(filename string, options *JpegsaveOptions) error
- func (r *Image) JpegsaveBuffer(options *JpegsaveBufferOptions) ([]byte, error)
- func (r *Image) JpegsaveTarget(target *Target, options *JpegsaveTargetOptions) error
- func (r *Image) Jxlsave(filename string, options *JxlsaveOptions) error
- func (r *Image) JxlsaveBuffer(options *JxlsaveBufferOptions) ([]byte, error)
- func (r *Image) JxlsaveTarget(target *Target, options *JxlsaveTargetOptions) error
- func (r *Image) LCh2CMC() error
- func (r *Image) LCh2Lab() error
- func (r *Image) Lab2LCh() error
- func (r *Image) Lab2LabQ() error
- func (r *Image) Lab2LabS() error
- func (r *Image) Lab2XYZ(options *Lab2XYZOptions) error
- func (r *Image) LabQ2Lab() error
- func (r *Image) LabQ2LabS() error
- func (r *Image) LabQ2sRGB() error
- func (r *Image) LabS2Lab() error
- func (r *Image) LabS2LabQ() error
- func (r *Image) Label(text string, x, y int, options *LabelOptions) error
- func (r *Image) Labelregions() error
- func (r *Image) Linear(a []float64, b []float64, options *LinearOptions) error
- func (r *Image) Linecache(options *LinecacheOptions) (*Image, error)
- func (r *Image) Magicksave(filename string, options *MagicksaveOptions) error
- func (r *Image) MagicksaveBuffer(options *MagicksaveBufferOptions) ([]byte, error)
- func (r *Image) Mapim(index *Image, options *MapimOptions) error
- func (r *Image) Maplut(lut *Image, options *MaplutOptions) error
- func (r *Image) Match(sec *Image, xr1 int, yr1 int, xs1 int, ys1 int, xr2 int, yr2 int, xs2 int, ...) error
- func (r *Image) Math(math OperationMath) error
- func (r *Image) Math2(right *Image, math2 OperationMath2) error
- func (r *Image) Math2Const(math2 OperationMath2, c []float64) error
- func (r *Image) Matrixinvert() error
- func (r *Image) Matrixmultiply(right *Image) error
- func (r *Image) Matrixprint(options *MatrixprintOptions) error
- func (r *Image) Matrixsave(filename string, options *MatrixsaveOptions) error
- func (r *Image) MatrixsaveTarget(target *Target, options *MatrixsaveTargetOptions) error
- func (r *Image) Max(options *MaxOptions) (float64, error)
- func (r *Image) Maxpair(right *Image) error
- func (r *Image) Measure(h int, v int, options *MeasureOptions) error
- func (r *Image) Merge(sec *Image, direction Direction, dx int, dy int, options *MergeOptions) error
- func (r *Image) Min(options *MinOptions) (float64, error)
- func (r *Image) Minpair(right *Image) error
- func (r *Image) Modulate(brightness, saturation, hue float64) error
- func (r *Image) ModulateHSV(brightness, saturation float64, hue int) error
- func (r *Image) Morph(mask *Image, morph OperationMorphology) error
- func (r *Image) Mosaic(sec *Image, direction Direction, xref int, yref int, xsec int, ysec int, ...) error
- func (r *Image) Mosaic1(sec *Image, direction Direction, xr1 int, yr1 int, xs1 int, ys1 int, xr2 int, ...) error
- func (r *Image) Msb(options *MsbOptions) error
- func (r *Image) Multiply(right *Image) error
- func (r *Image) Niftisave(filename string, options *NiftisaveOptions) error
- func (r *Image) OffsetX() int
- func (r *Image) OffsetY() int
- func (r *Image) Orientation() int
- func (r *Image) PageDelay() ([]int, error)
- func (r *Image) PageHeight() int
- func (r *Image) Pages() int
- func (r *Image) Percent(percent float64) (int, error)
- func (r *Image) Phasecor(in2 *Image) error
- func (r *Image) Pngsave(filename string, options *PngsaveOptions) error
- func (r *Image) PngsaveBuffer(options *PngsaveBufferOptions) ([]byte, error)
- func (r *Image) PngsaveTarget(target *Target, options *PngsaveTargetOptions) error
- func (r *Image) Ppmsave(filename string, options *PpmsaveOptions) error
- func (r *Image) PpmsaveTarget(target *Target, options *PpmsaveTargetOptions) error
- func (r *Image) Premultiply(options *PremultiplyOptions) error
- func (r *Image) Prewitt() error
- func (r *Image) Profile() (*Image, *Image, error)
- func (r *Image) Project() (*Image, *Image, error)
- func (r *Image) Quadratic(coeff *Image, options *QuadraticOptions) error
- func (r *Image) Rad2float() error
- func (r *Image) Radsave(filename string, options *RadsaveOptions) error
- func (r *Image) RadsaveBuffer(options *RadsaveBufferOptions) ([]byte, error)
- func (r *Image) RadsaveTarget(target *Target, options *RadsaveTargetOptions) error
- func (r *Image) Rank(width int, height int, index int) error
- func (r *Image) Rawsave(filename string, options *RawsaveOptions) error
- func (r *Image) RawsaveBuffer(options *RawsaveBufferOptions) ([]byte, error)
- func (r *Image) RawsaveTarget(target *Target, options *RawsaveTargetOptions) error
- func (r *Image) Recomb(m *Image) error
- func (r *Image) Reduce(hshrink float64, vshrink float64, options *ReduceOptions) error
- func (r *Image) Reduceh(hshrink float64, options *ReducehOptions) error
- func (r *Image) Reducev(vshrink float64, options *ReducevOptions) error
- func (r *Image) Relational(right *Image, relational OperationRelational) error
- func (r *Image) RelationalConst(relational OperationRelational, c []float64) error
- func (r *Image) Remainder(right *Image) error
- func (r *Image) RemainderConst(c []float64) error
- func (r *Image) Remosaic(oldStr string, newStr string) error
- func (r *Image) RemoveExif() error
- func (r *Image) RemoveICCProfile() error
- func (r *Image) RemoveOrientation() error
- func (r *Image) Replicate(across int, down int) error
- func (r *Image) ResX() float64
- func (r *Image) ResY() float64
- func (r *Image) Resize(scale float64, options *ResizeOptions) error
- func (r *Image) Rot(angle Angle) error
- func (r *Image) Rot45(options *Rot45Options) error
- func (r *Image) RotMultiPage(angle Angle) error
- func (r *Image) Rotate(angle float64, options *RotateOptions) error
- func (r *Image) Round(round OperationRound) error
- func (r *Image) SRGB2HSV() error
- func (r *Image) SRGB2scRGB() error
- func (r *Image) ScRGB2BW(options *ScRGB2BWOptions) error
- func (r *Image) ScRGB2XYZ() error
- func (r *Image) ScRGB2sRGB(options *ScRGB2sRGBOptions) error
- func (r *Image) Scale(options *ScaleOptions) error
- func (r *Image) Scharr() error
- func (r *Image) Sequential(options *SequentialOptions) (*Image, error)
- func (r *Image) SetDouble(name string, f float64)
- func (r *Image) SetInt(name string, i int)
- func (r *Image) SetOrientation(orientation int) error
- func (r *Image) SetPageHeight(height int) error
- func (r *Image) SetPages(pages int) error
- func (r *Image) SetString(name string, str string)
- func (r *Image) Sharpen(options *SharpenOptions) error
- func (r *Image) Shrink(hshrink float64, vshrink float64, options *ShrinkOptions) error
- func (r *Image) Shrinkh(hshrink int, options *ShrinkhOptions) error
- func (r *Image) Shrinkv(vshrink int, options *ShrinkvOptions) error
- func (r *Image) Sign() error
- func (r *Image) Similarity(options *SimilarityOptions) error
- func (r *Image) Smartcrop(width int, height int, options *SmartcropOptions) error
- func (r *Image) Sobel() error
- func (r *Image) Spcor(ref *Image) error
- func (r *Image) Spectrum() error
- func (r *Image) Stats() error
- func (r *Image) Stdif(width int, height int, options *StdifOptions) error
- func (r *Image) Subsample(xfac int, yfac int, options *SubsampleOptions) error
- func (r *Image) Subtract(right *Image) error
- func (r *Image) ThumbnailImage(width int, options *ThumbnailImageOptions) error
- func (r *Image) Tiffsave(filename string, options *TiffsaveOptions) error
- func (r *Image) TiffsaveBuffer(options *TiffsaveBufferOptions) ([]byte, error)
- func (r *Image) TiffsaveTarget(target *Target, options *TiffsaveTargetOptions) error
- func (r *Image) Tilecache(options *TilecacheOptions) (*Image, error)
- func (r *Image) Transpose3d(options *Transpose3dOptions) error
- func (r *Image) Unpremultiply(options *UnpremultiplyOptions) error
- func (r *Image) Vipssave(filename string, options *VipssaveOptions) error
- func (r *Image) VipssaveTarget(target *Target, options *VipssaveTargetOptions) error
- func (r *Image) Webpsave(filename string, options *WebpsaveOptions) error
- func (r *Image) WebpsaveBuffer(options *WebpsaveBufferOptions) ([]byte, error)
- func (r *Image) WebpsaveTarget(target *Target, options *WebpsaveTargetOptions) error
- func (r *Image) Width() int
- func (r *Image) Wrap(options *WrapOptions) error
- func (r *Image) XYZ2CMYK() error
- func (r *Image) XYZ2Lab(options *XYZ2LabOptions) error
- func (r *Image) XYZ2Yxy() error
- func (r *Image) XYZ2scRGB() error
- func (r *Image) Yxy2XYZ() error
- func (r *Image) Zoom(xfac int, yfac int) error
- type ImageType
- type InsertOptions
- type Intent
- type Interesting
- type Interpolate
- type InterpolateType
- type Interpretation
- type InvertlutOptions
- type InvfftOptions
- type JoinOptions
- type Jp2kloadBufferOptions
- type Jp2kloadOptions
- type Jp2kloadSourceOptions
- type Jp2ksaveBufferOptions
- type Jp2ksaveOptions
- type Jp2ksaveTargetOptions
- type JpegloadBufferOptions
- type JpegloadOptions
- type JpegloadSourceOptions
- type JpegsaveBufferOptions
- type JpegsaveOptions
- type JpegsaveTargetOptions
- type JxlloadBufferOptions
- type JxlloadOptions
- type JxlloadSourceOptions
- type JxlsaveBufferOptions
- type JxlsaveOptions
- type JxlsaveTargetOptions
- type Keep
- type Kernel
- type Lab2XYZOptions
- type LabelOptions
- type LinearOptions
- type LinecacheOptions
- type LoadOptions
- type LogLevel
- type LoggingHandlerFunction
- type LogmatOptions
- type MagickloadBufferOptions
- type MagickloadOptions
- type MagicksaveBufferOptions
- type MagicksaveOptions
- type MapimOptions
- type MaplutOptions
- type MaskButterworthBandOptions
- type MaskButterworthOptions
- type MaskButterworthRingOptions
- type MaskFractalOptions
- type MaskGaussianBandOptions
- type MaskGaussianOptions
- type MaskGaussianRingOptions
- type MaskIdealBandOptions
- type MaskIdealOptions
- type MaskIdealRingOptions
- type MatchOptions
- type MatloadOptions
- type MatrixloadOptions
- type MatrixloadSourceOptions
- type MatrixprintOptions
- type MatrixsaveOptions
- type MatrixsaveTargetOptions
- type MaxOptions
- type MeasureOptions
- type MemoryStats
- type MergeOptions
- type MinOptions
- type Mosaic1Options
- type MosaicOptions
- type MsbOptions
- type NiftiloadOptions
- type NiftiloadSourceOptions
- type NiftisaveOptions
- type OpenexrloadOptions
- type OpenslideloadOptions
- type OpenslideloadSourceOptions
- type OperationBoolean
- type OperationComplex
- type OperationComplex2
- type OperationComplexget
- type OperationMath
- type OperationMath2
- type OperationMorphology
- type OperationRelational
- type OperationRound
- type PCS
- type PdfloadBufferOptions
- type PdfloadOptions
- type PdfloadSourceOptions
- type PerlinOptions
- type PngFilter
- type PngloadBufferOptions
- type PngloadOptions
- type PngloadSourceOptions
- type PngsaveBufferOptions
- type PngsaveOptions
- type PngsaveTargetOptions
- type PpmFormat
- type PpmloadBufferOptions
- type PpmloadOptions
- type PpmloadSourceOptions
- type PpmsaveOptions
- type PpmsaveTargetOptions
- type Precision
- type PremultiplyOptions
- type QuadraticOptions
- type RadloadBufferOptions
- type RadloadOptions
- type RadloadSourceOptions
- type RadsaveBufferOptions
- type RadsaveOptions
- type RadsaveTargetOptions
- type RawloadOptions
- type RawsaveBufferOptions
- type RawsaveOptions
- type RawsaveTargetOptions
- type ReduceOptions
- type ReducehOptions
- type ReducevOptions
- type RegionShrink
- type ResizeOptions
- type Rot45Options
- type RotateOptions
- type ScRGB2BWOptions
- type ScRGB2sRGBOptions
- type ScaleOptions
- type SdfOptions
- type SdfShape
- type SequentialOptions
- type SharpenOptions
- type ShrinkOptions
- type ShrinkhOptions
- type ShrinkvOptions
- type SimilarityOptions
- type SinesOptions
- type Size
- type SmartcropOptions
- type Source
- type StdifOptions
- type Subsample
- type SubsampleOptions
- type SvgloadBufferOptions
- type SvgloadOptions
- type SvgloadSourceOptions
- type SystemOptions
- type Target
- type TextOptions
- type TextWrap
- type ThumbnailBufferOptions
- type ThumbnailImageOptions
- type ThumbnailOptions
- type ThumbnailSourceOptions
- type TiffCompression
- type TiffPredictor
- type TiffResunit
- type TiffloadBufferOptions
- type TiffloadOptions
- type TiffloadSourceOptions
- type TiffsaveBufferOptions
- type TiffsaveOptions
- type TiffsaveTargetOptions
- type TilecacheOptions
- type TonelutOptions
- type Transpose3dOptions
- type UnpremultiplyOptions
- type VipsloadOptions
- type VipsloadSourceOptions
- type VipssaveOptions
- type VipssaveTargetOptions
- type WebpPreset
- type WebploadBufferOptions
- type WebploadOptions
- type WebploadSourceOptions
- type WebpsaveBufferOptions
- type WebpsaveOptions
- type WebpsaveTargetOptions
- type WorleyOptions
- type WrapOptions
- type XYZ2LabOptions
- type XyzOptions
- type ZoneOptions
Constants ¶
const MajorVersion = int(C.VIPS_MAJOR_VERSION)
MajorVersion is the libvips major component of the version string (x in x.y.z)
const MicroVersion = int(C.VIPS_MICRO_VERSION)
MicroVersion is the libvips micro component of the version string (z in x.y.z) Also known as patch version
const MinorVersion = int(C.VIPS_MINOR_VERSION)
MinorVersion is the libvips minor component of the version string (y in x.y.z)
const Version = string(C.VIPS_VERSION)
Version is the full libvips version string (x.y.z)
Variables ¶
This section is empty.
Functions ¶
func HasOperation ¶ added in v0.8.2
HasOperation checks if a libvips operation exists
func ProfileLoad ¶
ProfileLoad vips_profile_load load named ICC profile
The name specifies profile name.
func ReadVipsMemStats ¶
func ReadVipsMemStats(stats *MemoryStats)
ReadVipsMemStats returns various memory statistics such as allocated memory and open files.
func SetLogging ¶
func SetLogging(handler LoggingHandlerFunction, verbosity LogLevel)
SetLogging set logging handler and verbosity
Types ¶
type Access ¶
type Access int
Access represents VipsAccess type
const ( AccessRandom Access = C.VIPS_ACCESS_RANDOM AccessSequential Access = C.VIPS_ACCESS_SEQUENTIAL AccessSequentialUnbuffered Access = C.VIPS_ACCESS_SEQUENTIAL_UNBUFFERED AccessLast Access = C.VIPS_ACCESS_LAST )
Access enum
type AffineOptions ¶
type AffineOptions struct { // Interpolate Interpolate pixels with this Interpolate *Interpolate // Oarea Area of output to generate Oarea []int // Odx Horizontal output displacement Odx float64 // Ody Vertical output displacement Ody float64 // Idx Horizontal input displacement Idx float64 // Idy Vertical input displacement Idy float64 // Background Background value Background []float64 // Premultiplied Images have premultiplied alpha Premultiplied bool // Extend How to generate the extra pixels Extend Extend }
AffineOptions optional arguments for vips_affine
func DefaultAffineOptions ¶
func DefaultAffineOptions() *AffineOptions
DefaultAffineOptions creates default value for vips_affine optional arguments
type Align ¶
type Align int
Align represents VipsAlign type
const ( AlignLow Align = C.VIPS_ALIGN_LOW AlignCentre Align = C.VIPS_ALIGN_CENTRE AlignHigh Align = C.VIPS_ALIGN_HIGH AlignLast Align = C.VIPS_ALIGN_LAST )
Align enum
type AnalyzeloadOptions ¶
type AnalyzeloadOptions struct { // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
AnalyzeloadOptions optional arguments for vips_analyzeload
func DefaultAnalyzeloadOptions ¶
func DefaultAnalyzeloadOptions() *AnalyzeloadOptions
DefaultAnalyzeloadOptions creates default value for vips_analyzeload optional arguments
type Angle ¶
type Angle int
Angle represents VipsAngle type
const ( AngleD0 Angle = C.VIPS_ANGLE_D0 AngleD90 Angle = C.VIPS_ANGLE_D90 AngleD180 Angle = C.VIPS_ANGLE_D180 AngleD270 Angle = C.VIPS_ANGLE_D270 AngleLast Angle = C.VIPS_ANGLE_LAST )
Angle enum
type Angle45 ¶
type Angle45 int
Angle45 represents VipsAngle45 type
const ( Angle45D0 Angle45 = C.VIPS_ANGLE45_D0 Angle45D45 Angle45 = C.VIPS_ANGLE45_D45 Angle45D90 Angle45 = C.VIPS_ANGLE45_D90 Angle45D135 Angle45 = C.VIPS_ANGLE45_D135 Angle45D180 Angle45 = C.VIPS_ANGLE45_D180 Angle45D225 Angle45 = C.VIPS_ANGLE45_D225 Angle45D270 Angle45 = C.VIPS_ANGLE45_D270 Angle45D315 Angle45 = C.VIPS_ANGLE45_D315 Angle45Last Angle45 = C.VIPS_ANGLE45_LAST )
Angle45 enum
type ArrayjoinOptions ¶
type ArrayjoinOptions struct { // Across Number of images across grid Across int // Shim Pixels between images Shim int // Background Colour for new pixels Background []float64 // Halign Align on the left, centre or right Halign Align // Valign Align on the top, centre or bottom Valign Align // Hspacing Horizontal spacing between images Hspacing int // Vspacing Vertical spacing between images Vspacing int }
ArrayjoinOptions optional arguments for vips_arrayjoin
func DefaultArrayjoinOptions ¶
func DefaultArrayjoinOptions() *ArrayjoinOptions
DefaultArrayjoinOptions creates default value for vips_arrayjoin optional arguments
type BandFormat ¶
type BandFormat int
BandFormat represents VipsBandFormat type
const ( BandFormatNotset BandFormat = C.VIPS_FORMAT_NOTSET BandFormatUchar BandFormat = C.VIPS_FORMAT_UCHAR BandFormatChar BandFormat = C.VIPS_FORMAT_CHAR BandFormatUshort BandFormat = C.VIPS_FORMAT_USHORT BandFormatShort BandFormat = C.VIPS_FORMAT_SHORT BandFormatUint BandFormat = C.VIPS_FORMAT_UINT BandFormatInt BandFormat = C.VIPS_FORMAT_INT BandFormatFloat BandFormat = C.VIPS_FORMAT_FLOAT BandFormatComplex BandFormat = C.VIPS_FORMAT_COMPLEX BandFormatDouble BandFormat = C.VIPS_FORMAT_DOUBLE BandFormatDpcomplex BandFormat = C.VIPS_FORMAT_DPCOMPLEX BandFormatLast BandFormat = C.VIPS_FORMAT_LAST )
BandFormat enum
type BandfoldOptions ¶
type BandfoldOptions struct { // Factor Fold by this factor Factor int }
BandfoldOptions optional arguments for vips_bandfold
func DefaultBandfoldOptions ¶
func DefaultBandfoldOptions() *BandfoldOptions
DefaultBandfoldOptions creates default value for vips_bandfold optional arguments
type BandrankOptions ¶
type BandrankOptions struct { // Index Select this band element from sorted list Index int }
BandrankOptions optional arguments for vips_bandrank
func DefaultBandrankOptions ¶
func DefaultBandrankOptions() *BandrankOptions
DefaultBandrankOptions creates default value for vips_bandrank optional arguments
type BandunfoldOptions ¶
type BandunfoldOptions struct { // Factor Unfold by this factor Factor int }
BandunfoldOptions optional arguments for vips_bandunfold
func DefaultBandunfoldOptions ¶
func DefaultBandunfoldOptions() *BandunfoldOptions
DefaultBandunfoldOptions creates default value for vips_bandunfold optional arguments
type BlackOptions ¶
type BlackOptions struct { // Bands Number of bands in image Bands int }
BlackOptions optional arguments for vips_black
func DefaultBlackOptions ¶
func DefaultBlackOptions() *BlackOptions
DefaultBlackOptions creates default value for vips_black optional arguments
type BlendMode ¶
type BlendMode int
BlendMode represents VipsBlendMode type
const ( BlendModeClear BlendMode = C.VIPS_BLEND_MODE_CLEAR BlendModeSource BlendMode = C.VIPS_BLEND_MODE_SOURCE BlendModeOver BlendMode = C.VIPS_BLEND_MODE_OVER BlendModeIn BlendMode = C.VIPS_BLEND_MODE_IN BlendModeOut BlendMode = C.VIPS_BLEND_MODE_OUT BlendModeAtop BlendMode = C.VIPS_BLEND_MODE_ATOP BlendModeDest BlendMode = C.VIPS_BLEND_MODE_DEST BlendModeDestOver BlendMode = C.VIPS_BLEND_MODE_DEST_OVER BlendModeDestIn BlendMode = C.VIPS_BLEND_MODE_DEST_IN BlendModeDestOut BlendMode = C.VIPS_BLEND_MODE_DEST_OUT BlendModeDestAtop BlendMode = C.VIPS_BLEND_MODE_DEST_ATOP BlendModeXor BlendMode = C.VIPS_BLEND_MODE_XOR BlendModeAdd BlendMode = C.VIPS_BLEND_MODE_ADD BlendModeSaturate BlendMode = C.VIPS_BLEND_MODE_SATURATE BlendModeMultiply BlendMode = C.VIPS_BLEND_MODE_MULTIPLY BlendModeScreen BlendMode = C.VIPS_BLEND_MODE_SCREEN BlendModeOverlay BlendMode = C.VIPS_BLEND_MODE_OVERLAY BlendModeDarken BlendMode = C.VIPS_BLEND_MODE_DARKEN BlendModeLighten BlendMode = C.VIPS_BLEND_MODE_LIGHTEN BlendModeColourDodge BlendMode = C.VIPS_BLEND_MODE_COLOUR_DODGE BlendModeColourBurn BlendMode = C.VIPS_BLEND_MODE_COLOUR_BURN BlendModeHardLight BlendMode = C.VIPS_BLEND_MODE_HARD_LIGHT BlendModeSoftLight BlendMode = C.VIPS_BLEND_MODE_SOFT_LIGHT BlendModeDifference BlendMode = C.VIPS_BLEND_MODE_DIFFERENCE BlendModeExclusion BlendMode = C.VIPS_BLEND_MODE_EXCLUSION BlendModeLast BlendMode = C.VIPS_BLEND_MODE_LAST )
BlendMode enum
type CannyOptions ¶
type CannyOptions struct { // Sigma Sigma of Gaussian Sigma float64 // Precision Convolve with this precision Precision Precision }
CannyOptions optional arguments for vips_canny
func DefaultCannyOptions ¶
func DefaultCannyOptions() *CannyOptions
DefaultCannyOptions creates default value for vips_canny optional arguments
type CastOptions ¶
type CastOptions struct { // Shift Shift integer values up and down Shift bool }
CastOptions optional arguments for vips_cast
func DefaultCastOptions ¶
func DefaultCastOptions() *CastOptions
DefaultCastOptions creates default value for vips_cast optional arguments
type ClampOptions ¶
ClampOptions optional arguments for vips_clamp
func DefaultClampOptions ¶
func DefaultClampOptions() *ClampOptions
DefaultClampOptions creates default value for vips_clamp optional arguments
type Coding ¶
type Coding int
Coding represents VipsCoding type
const ( CodingError Coding = C.VIPS_CODING_ERROR CodingNone Coding = C.VIPS_CODING_NONE CodingLabq Coding = C.VIPS_CODING_LABQ CodingRad Coding = C.VIPS_CODING_RAD CodingLast Coding = C.VIPS_CODING_LAST )
Coding enum
type ColourspaceOptions ¶
type ColourspaceOptions struct { // SourceSpace Source color space SourceSpace Interpretation }
ColourspaceOptions optional arguments for vips_colourspace
func DefaultColourspaceOptions ¶
func DefaultColourspaceOptions() *ColourspaceOptions
DefaultColourspaceOptions creates default value for vips_colourspace optional arguments
type Combine ¶
type Combine int
Combine represents VipsCombine type
const ( CombineMax Combine = C.VIPS_COMBINE_MAX CombineSum Combine = C.VIPS_COMBINE_SUM CombineMin Combine = C.VIPS_COMBINE_MIN CombineLast Combine = C.VIPS_COMBINE_LAST )
Combine enum
type CombineMode ¶
type CombineMode int
CombineMode represents VipsCombineMode type
const ( CombineModeSet CombineMode = C.VIPS_COMBINE_MODE_SET CombineModeAdd CombineMode = C.VIPS_COMBINE_MODE_ADD CombineModeLast CombineMode = C.VIPS_COMBINE_MODE_LAST )
CombineMode enum
type CompassDirection ¶
type CompassDirection int
CompassDirection represents VipsCompassDirection type
const ( CompassDirectionCentre CompassDirection = C.VIPS_COMPASS_DIRECTION_CENTRE CompassDirectionNorth CompassDirection = C.VIPS_COMPASS_DIRECTION_NORTH CompassDirectionEast CompassDirection = C.VIPS_COMPASS_DIRECTION_EAST CompassDirectionSouth CompassDirection = C.VIPS_COMPASS_DIRECTION_SOUTH CompassDirectionWest CompassDirection = C.VIPS_COMPASS_DIRECTION_WEST CompassDirectionNorthEast CompassDirection = C.VIPS_COMPASS_DIRECTION_NORTH_EAST CompassDirectionSouthEast CompassDirection = C.VIPS_COMPASS_DIRECTION_SOUTH_EAST CompassDirectionSouthWest CompassDirection = C.VIPS_COMPASS_DIRECTION_SOUTH_WEST CompassDirectionNorthWest CompassDirection = C.VIPS_COMPASS_DIRECTION_NORTH_WEST CompassDirectionLast CompassDirection = C.VIPS_COMPASS_DIRECTION_LAST )
CompassDirection enum
type CompassOptions ¶
type CompassOptions struct { // Times Rotate and convolve this many times Times int // Angle Rotate mask by this much between convolutions Angle Angle45 // Combine Combine convolution results like this Combine Combine // Precision Convolve with this precision Precision Precision // Layers Use this many layers in approximation Layers int // Cluster Cluster lines closer than this in approximation Cluster int }
CompassOptions optional arguments for vips_compass
func DefaultCompassOptions ¶
func DefaultCompassOptions() *CompassOptions
DefaultCompassOptions creates default value for vips_compass optional arguments
type Composite2Options ¶
type Composite2Options struct { // X x position of overlay X int // Y y position of overlay Y int // CompositingSpace Composite images in this colour space CompositingSpace Interpretation // Premultiplied Images have premultiplied alpha Premultiplied bool }
Composite2Options optional arguments for vips_composite2
func DefaultComposite2Options ¶
func DefaultComposite2Options() *Composite2Options
DefaultComposite2Options creates default value for vips_composite2 optional arguments
type CompositeOptions ¶
type CompositeOptions struct { // X Array of x coordinates to join at X []int // Y Array of y coordinates to join at Y []int // CompositingSpace Composite images in this colour space CompositingSpace Interpretation // Premultiplied Images have premultiplied alpha Premultiplied bool }
CompositeOptions optional arguments for vips_composite
func DefaultCompositeOptions ¶
func DefaultCompositeOptions() *CompositeOptions
DefaultCompositeOptions creates default value for vips_composite optional arguments
type ConvOptions ¶
type ConvOptions struct { // Precision Convolve with this precision Precision Precision // Layers Use this many layers in approximation Layers int // Cluster Cluster lines closer than this in approximation Cluster int }
ConvOptions optional arguments for vips_conv
func DefaultConvOptions ¶
func DefaultConvOptions() *ConvOptions
DefaultConvOptions creates default value for vips_conv optional arguments
type ConvaOptions ¶
type ConvaOptions struct { // Layers Use this many layers in approximation Layers int // Cluster Cluster lines closer than this in approximation Cluster int }
ConvaOptions optional arguments for vips_conva
func DefaultConvaOptions ¶
func DefaultConvaOptions() *ConvaOptions
DefaultConvaOptions creates default value for vips_conva optional arguments
type ConvasepOptions ¶
type ConvasepOptions struct { // Layers Use this many layers in approximation Layers int }
ConvasepOptions optional arguments for vips_convasep
func DefaultConvasepOptions ¶
func DefaultConvasepOptions() *ConvasepOptions
DefaultConvasepOptions creates default value for vips_convasep optional arguments
type ConvsepOptions ¶
type ConvsepOptions struct { // Precision Convolve with this precision Precision Precision // Layers Use this many layers in approximation Layers int // Cluster Cluster lines closer than this in approximation Cluster int }
ConvsepOptions optional arguments for vips_convsep
func DefaultConvsepOptions ¶
func DefaultConvsepOptions() *ConvsepOptions
DefaultConvsepOptions creates default value for vips_convsep optional arguments
type CopyOptions ¶
type CopyOptions struct { // Width Image width in pixels Width int // Height Image height in pixels Height int // Bands Number of bands in image Bands int // Format Pixel format in image Format BandFormat // Coding Pixel coding Coding Coding // Interpretation Pixel interpretation Interpretation Interpretation // Xres Horizontal resolution in pixels/mm Xres float64 // Yres Vertical resolution in pixels/mm Yres float64 // Xoffset Horizontal offset of origin Xoffset int // Yoffset Vertical offset of origin Yoffset int }
CopyOptions optional arguments for vips_copy
func DefaultCopyOptions ¶
func DefaultCopyOptions() *CopyOptions
DefaultCopyOptions creates default value for vips_copy optional arguments
type CsvloadOptions ¶
type CsvloadOptions struct { // Skip Skip this many lines at the start of the file Skip int // Lines Read this many lines from the file Lines int // Whitespace Set of whitespace characters Whitespace string // Separator Set of separator characters Separator string // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
CsvloadOptions optional arguments for vips_csvload
func DefaultCsvloadOptions ¶
func DefaultCsvloadOptions() *CsvloadOptions
DefaultCsvloadOptions creates default value for vips_csvload optional arguments
type CsvloadSourceOptions ¶
type CsvloadSourceOptions struct { // Skip Skip this many lines at the start of the file Skip int // Lines Read this many lines from the file Lines int // Whitespace Set of whitespace characters Whitespace string // Separator Set of separator characters Separator string // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
CsvloadSourceOptions optional arguments for vips_csvload_source
func DefaultCsvloadSourceOptions ¶
func DefaultCsvloadSourceOptions() *CsvloadSourceOptions
DefaultCsvloadSourceOptions creates default value for vips_csvload_source optional arguments
type CsvsaveOptions ¶
type CsvsaveOptions struct { // Separator Separator characters Separator string // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
CsvsaveOptions optional arguments for vips_csvsave
func DefaultCsvsaveOptions ¶
func DefaultCsvsaveOptions() *CsvsaveOptions
DefaultCsvsaveOptions creates default value for vips_csvsave optional arguments
type CsvsaveTargetOptions ¶ added in v1.1.0
type CsvsaveTargetOptions struct { // Separator Separator characters Separator string // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
CsvsaveTargetOptions optional arguments for vips_csvsave_target
func DefaultCsvsaveTargetOptions ¶ added in v1.1.0
func DefaultCsvsaveTargetOptions() *CsvsaveTargetOptions
DefaultCsvsaveTargetOptions creates default value for vips_csvsave_target optional arguments
type Direction ¶
type Direction int
Direction represents VipsDirection type
const ( DirectionHorizontal Direction = C.VIPS_DIRECTION_HORIZONTAL DirectionVertical Direction = C.VIPS_DIRECTION_VERTICAL DirectionLast Direction = C.VIPS_DIRECTION_LAST )
Direction enum
type DrawCircleOptions ¶
type DrawCircleOptions struct { // Fill Draw a solid object Fill bool }
DrawCircleOptions optional arguments for vips_draw_circle
func DefaultDrawCircleOptions ¶
func DefaultDrawCircleOptions() *DrawCircleOptions
DefaultDrawCircleOptions creates default value for vips_draw_circle optional arguments
type DrawFloodOptions ¶
type DrawFloodOptions struct { // Test Test pixels in this image Test *Image // Equal DrawFlood while equal to edge Equal bool }
DrawFloodOptions optional arguments for vips_draw_flood
func DefaultDrawFloodOptions ¶
func DefaultDrawFloodOptions() *DrawFloodOptions
DefaultDrawFloodOptions creates default value for vips_draw_flood optional arguments
type DrawImageOptions ¶
type DrawImageOptions struct { // Mode Combining mode Mode CombineMode }
DrawImageOptions optional arguments for vips_draw_image
func DefaultDrawImageOptions ¶
func DefaultDrawImageOptions() *DrawImageOptions
DefaultDrawImageOptions creates default value for vips_draw_image optional arguments
type DrawRectOptions ¶
type DrawRectOptions struct { // Fill Draw a solid object Fill bool }
DrawRectOptions optional arguments for vips_draw_rect
func DefaultDrawRectOptions ¶
func DefaultDrawRectOptions() *DrawRectOptions
DefaultDrawRectOptions creates default value for vips_draw_rect optional arguments
type DzContainer ¶ added in v0.2.0
type DzContainer int
DzContainer represents VipsForeignDzContainer type
const ( DzContainerFs DzContainer = C.VIPS_FOREIGN_DZ_CONTAINER_FS DzContainerZip DzContainer = C.VIPS_FOREIGN_DZ_CONTAINER_ZIP DzContainerSzi DzContainer = C.VIPS_FOREIGN_DZ_CONTAINER_SZI DzContainerLast DzContainer = C.VIPS_FOREIGN_DZ_CONTAINER_LAST )
DzContainer enum
type DzDepth ¶
type DzDepth int
DzDepth represents VipsForeignDzDepth type
const ( DzDepthOnepixel DzDepth = C.VIPS_FOREIGN_DZ_DEPTH_ONEPIXEL DzDepthOnetile DzDepth = C.VIPS_FOREIGN_DZ_DEPTH_ONETILE DzDepthOne DzDepth = C.VIPS_FOREIGN_DZ_DEPTH_ONE DzDepthLast DzDepth = C.VIPS_FOREIGN_DZ_DEPTH_LAST )
DzDepth enum
type DzLayout ¶ added in v0.2.0
type DzLayout int
DzLayout represents VipsForeignDzLayout type
const ( DzLayoutDz DzLayout = C.VIPS_FOREIGN_DZ_LAYOUT_DZ DzLayoutZoomify DzLayout = C.VIPS_FOREIGN_DZ_LAYOUT_ZOOMIFY DzLayoutGoogle DzLayout = C.VIPS_FOREIGN_DZ_LAYOUT_GOOGLE DzLayoutIiif DzLayout = C.VIPS_FOREIGN_DZ_LAYOUT_IIIF DzLayoutIiif3 DzLayout = C.VIPS_FOREIGN_DZ_LAYOUT_IIIF3 DzLayoutLast DzLayout = C.VIPS_FOREIGN_DZ_LAYOUT_LAST )
DzLayout enum
type DzsaveBufferOptions ¶ added in v0.2.0
type DzsaveBufferOptions struct { // Imagename Image name Imagename string // Layout Directory layout Layout DzLayout // Suffix Filename suffix for tiles Suffix string // Overlap Tile overlap in pixels Overlap int // TileSize Tile size in pixels TileSize int // Centre Center image in tile Centre bool // Depth Pyramid depth Depth DzDepth // Angle Rotate image during save Angle Angle // Container Pyramid container type Container DzContainer // Compression ZIP deflate compression level Compression int // RegionShrink Method to shrink regions RegionShrink RegionShrink // SkipBlanks Skip tiles which are nearly equal to the background SkipBlanks int // Id Resource ID Id string // Q Q factor Q int // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
DzsaveBufferOptions optional arguments for vips_dzsave_buffer
func DefaultDzsaveBufferOptions ¶ added in v0.2.0
func DefaultDzsaveBufferOptions() *DzsaveBufferOptions
DefaultDzsaveBufferOptions creates default value for vips_dzsave_buffer optional arguments
type DzsaveOptions ¶ added in v0.2.0
type DzsaveOptions struct { // Imagename Image name Imagename string // Layout Directory layout Layout DzLayout // Suffix Filename suffix for tiles Suffix string // Overlap Tile overlap in pixels Overlap int // TileSize Tile size in pixels TileSize int // Centre Center image in tile Centre bool // Depth Pyramid depth Depth DzDepth // Angle Rotate image during save Angle Angle // Container Pyramid container type Container DzContainer // Compression ZIP deflate compression level Compression int // RegionShrink Method to shrink regions RegionShrink RegionShrink // SkipBlanks Skip tiles which are nearly equal to the background SkipBlanks int // Id Resource ID Id string // Q Q factor Q int // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
DzsaveOptions optional arguments for vips_dzsave
func DefaultDzsaveOptions ¶ added in v0.2.0
func DefaultDzsaveOptions() *DzsaveOptions
DefaultDzsaveOptions creates default value for vips_dzsave optional arguments
type DzsaveTargetOptions ¶ added in v1.1.0
type DzsaveTargetOptions struct { // Imagename Image name Imagename string // Layout Directory layout Layout DzLayout // Suffix Filename suffix for tiles Suffix string // Overlap Tile overlap in pixels Overlap int // TileSize Tile size in pixels TileSize int // Centre Center image in tile Centre bool // Depth Pyramid depth Depth DzDepth // Angle Rotate image during save Angle Angle // Container Pyramid container type Container DzContainer // Compression ZIP deflate compression level Compression int // RegionShrink Method to shrink regions RegionShrink RegionShrink // SkipBlanks Skip tiles which are nearly equal to the background SkipBlanks int // Id Resource ID Id string // Q Q factor Q int // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
DzsaveTargetOptions optional arguments for vips_dzsave_target
func DefaultDzsaveTargetOptions ¶ added in v1.1.0
func DefaultDzsaveTargetOptions() *DzsaveTargetOptions
DefaultDzsaveTargetOptions creates default value for vips_dzsave_target optional arguments
type EmbedMultiPageOptions ¶
type EmbedMultiPageOptions struct { // Extend determines how the image edges are extended Extend Extend // Background color components [0-255] Background []float64 }
EmbedMultiPageOptions are options for EmbedMultiPage method
func DefaultEmbedMultiPageOptions ¶
func DefaultEmbedMultiPageOptions() *EmbedMultiPageOptions
DefaultEmbedMultiPageOptions creates default options for EmbedMultiPage
type EmbedOptions ¶
type EmbedOptions struct { // Extend How to generate the extra pixels Extend Extend // Background Color for background pixels Background []float64 }
EmbedOptions optional arguments for vips_embed
func DefaultEmbedOptions ¶
func DefaultEmbedOptions() *EmbedOptions
DefaultEmbedOptions creates default value for vips_embed optional arguments
type Extend ¶
type Extend int
Extend represents VipsExtend type
const ( ExtendBlack Extend = C.VIPS_EXTEND_BLACK ExtendCopy Extend = C.VIPS_EXTEND_COPY ExtendRepeat Extend = C.VIPS_EXTEND_REPEAT ExtendMirror Extend = C.VIPS_EXTEND_MIRROR ExtendWhite Extend = C.VIPS_EXTEND_WHITE ExtendBackground Extend = C.VIPS_EXTEND_BACKGROUND ExtendLast Extend = C.VIPS_EXTEND_LAST )
Extend enum
type ExtractBandOptions ¶
type ExtractBandOptions struct { // N Number of bands to extract N int }
ExtractBandOptions optional arguments for vips_extract_band
func DefaultExtractBandOptions ¶
func DefaultExtractBandOptions() *ExtractBandOptions
DefaultExtractBandOptions creates default value for vips_extract_band optional arguments
type EyeOptions ¶
type EyeOptions struct { // Uchar Output an unsigned char image Uchar bool // Factor Maximum spatial frequency Factor float64 }
EyeOptions optional arguments for vips_eye
func DefaultEyeOptions ¶
func DefaultEyeOptions() *EyeOptions
DefaultEyeOptions creates default value for vips_eye optional arguments
type FailOn ¶
type FailOn int
FailOn represents VipsFailOn type
const ( FailOnNone FailOn = C.VIPS_FAIL_ON_NONE FailOnTruncated FailOn = C.VIPS_FAIL_ON_TRUNCATED FailOnError FailOn = C.VIPS_FAIL_ON_ERROR FailOnWarning FailOn = C.VIPS_FAIL_ON_WARNING FailOnLast FailOn = C.VIPS_FAIL_ON_LAST )
FailOn enum
type FindTrimOptions ¶
type FindTrimOptions struct { // Threshold Object threshold Threshold float64 // Background Color for background pixels Background []float64 // LineArt Enable line art mode LineArt bool }
FindTrimOptions optional arguments for vips_find_trim
func DefaultFindTrimOptions ¶
func DefaultFindTrimOptions() *FindTrimOptions
DefaultFindTrimOptions creates default value for vips_find_trim optional arguments
type FitsloadOptions ¶
type FitsloadOptions struct { // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
FitsloadOptions optional arguments for vips_fitsload
func DefaultFitsloadOptions ¶
func DefaultFitsloadOptions() *FitsloadOptions
DefaultFitsloadOptions creates default value for vips_fitsload optional arguments
type FitssaveOptions ¶
type FitssaveOptions struct { // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
FitssaveOptions optional arguments for vips_fitssave
func DefaultFitssaveOptions ¶
func DefaultFitssaveOptions() *FitssaveOptions
DefaultFitssaveOptions creates default value for vips_fitssave optional arguments
type Flags ¶
type Flags int
Flags represents VipsForeignFlags type
const ( FlagsNone Flags = C.VIPS_FOREIGN_NONE FlagsPartial Flags = C.VIPS_FOREIGN_PARTIAL FlagsBigendian Flags = C.VIPS_FOREIGN_BIGENDIAN FlagsSequential Flags = C.VIPS_FOREIGN_SEQUENTIAL FlagsAll Flags = C.VIPS_FOREIGN_ALL )
Flags enum
type FlattenOptions ¶
type FlattenOptions struct { // Background Background value Background []float64 // MaxAlpha Maximum value of alpha channel MaxAlpha float64 }
FlattenOptions optional arguments for vips_flatten
func DefaultFlattenOptions ¶
func DefaultFlattenOptions() *FlattenOptions
DefaultFlattenOptions creates default value for vips_flatten optional arguments
type GammaOptions ¶
type GammaOptions struct { // Exponent Gamma factor Exponent float64 }
GammaOptions optional arguments for vips_gamma
func DefaultGammaOptions ¶
func DefaultGammaOptions() *GammaOptions
DefaultGammaOptions creates default value for vips_gamma optional arguments
type GaussblurOptions ¶
type GaussblurOptions struct { // MinAmpl Minimum amplitude of Gaussian MinAmpl float64 // Precision Convolve with this precision Precision Precision }
GaussblurOptions optional arguments for vips_gaussblur
func DefaultGaussblurOptions ¶
func DefaultGaussblurOptions() *GaussblurOptions
DefaultGaussblurOptions creates default value for vips_gaussblur optional arguments
type GaussmatOptions ¶
type GaussmatOptions struct { // Separable Generate separable Gaussian Separable bool // Precision Generate with this precision Precision Precision }
GaussmatOptions optional arguments for vips_gaussmat
func DefaultGaussmatOptions ¶
func DefaultGaussmatOptions() *GaussmatOptions
DefaultGaussmatOptions creates default value for vips_gaussmat optional arguments
type GaussnoiseOptions ¶
type GaussnoiseOptions struct { // Sigma Standard deviation of pixels in generated image Sigma float64 // Mean Mean of pixels in generated image Mean float64 // Seed Random number seed Seed int }
GaussnoiseOptions optional arguments for vips_gaussnoise
func DefaultGaussnoiseOptions ¶
func DefaultGaussnoiseOptions() *GaussnoiseOptions
DefaultGaussnoiseOptions creates default value for vips_gaussnoise optional arguments
type GetpointOptions ¶
type GetpointOptions struct { // UnpackComplex Complex pixels should be unpacked UnpackComplex bool }
GetpointOptions optional arguments for vips_getpoint
func DefaultGetpointOptions ¶
func DefaultGetpointOptions() *GetpointOptions
DefaultGetpointOptions creates default value for vips_getpoint optional arguments
type GifloadBufferOptions ¶
type GifloadBufferOptions struct { // N Number of pages to load, -1 for all N int // Page First page to load Page int // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
GifloadBufferOptions optional arguments for vips_gifload_buffer
func DefaultGifloadBufferOptions ¶
func DefaultGifloadBufferOptions() *GifloadBufferOptions
DefaultGifloadBufferOptions creates default value for vips_gifload_buffer optional arguments
type GifloadOptions ¶
type GifloadOptions struct { // N Number of pages to load, -1 for all N int // Page First page to load Page int // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
GifloadOptions optional arguments for vips_gifload
func DefaultGifloadOptions ¶
func DefaultGifloadOptions() *GifloadOptions
DefaultGifloadOptions creates default value for vips_gifload optional arguments
type GifloadSourceOptions ¶
type GifloadSourceOptions struct { // N Number of pages to load, -1 for all N int // Page First page to load Page int // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
GifloadSourceOptions optional arguments for vips_gifload_source
func DefaultGifloadSourceOptions ¶
func DefaultGifloadSourceOptions() *GifloadSourceOptions
DefaultGifloadSourceOptions creates default value for vips_gifload_source optional arguments
type GifsaveBufferOptions ¶
type GifsaveBufferOptions struct { // Dither Amount of dithering Dither float64 // Effort Quantisation effort Effort int // Bitdepth Number of bits per pixel Bitdepth int // InterframeMaxerror Maximum inter-frame error for transparency InterframeMaxerror float64 // Reuse Reuse palette from input Reuse bool // InterpaletteMaxerror Maximum inter-palette error for palette reusage InterpaletteMaxerror float64 // Interlace Generate an interlaced (progressive) GIF Interlace bool // KeepDuplicateFrames Keep duplicate frames in the output instead of combining them KeepDuplicateFrames bool // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
GifsaveBufferOptions optional arguments for vips_gifsave_buffer
func DefaultGifsaveBufferOptions ¶
func DefaultGifsaveBufferOptions() *GifsaveBufferOptions
DefaultGifsaveBufferOptions creates default value for vips_gifsave_buffer optional arguments
type GifsaveOptions ¶
type GifsaveOptions struct { // Dither Amount of dithering Dither float64 // Effort Quantisation effort Effort int // Bitdepth Number of bits per pixel Bitdepth int // InterframeMaxerror Maximum inter-frame error for transparency InterframeMaxerror float64 // Reuse Reuse palette from input Reuse bool // InterpaletteMaxerror Maximum inter-palette error for palette reusage InterpaletteMaxerror float64 // Interlace Generate an interlaced (progressive) GIF Interlace bool // KeepDuplicateFrames Keep duplicate frames in the output instead of combining them KeepDuplicateFrames bool // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
GifsaveOptions optional arguments for vips_gifsave
func DefaultGifsaveOptions ¶
func DefaultGifsaveOptions() *GifsaveOptions
DefaultGifsaveOptions creates default value for vips_gifsave optional arguments
type GifsaveTargetOptions ¶ added in v1.1.0
type GifsaveTargetOptions struct { // Dither Amount of dithering Dither float64 // Effort Quantisation effort Effort int // Bitdepth Number of bits per pixel Bitdepth int // InterframeMaxerror Maximum inter-frame error for transparency InterframeMaxerror float64 // Reuse Reuse palette from input Reuse bool // InterpaletteMaxerror Maximum inter-palette error for palette reusage InterpaletteMaxerror float64 // Interlace Generate an interlaced (progressive) GIF Interlace bool // KeepDuplicateFrames Keep duplicate frames in the output instead of combining them KeepDuplicateFrames bool // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
GifsaveTargetOptions optional arguments for vips_gifsave_target
func DefaultGifsaveTargetOptions ¶ added in v1.1.0
func DefaultGifsaveTargetOptions() *GifsaveTargetOptions
DefaultGifsaveTargetOptions creates default value for vips_gifsave_target optional arguments
type GlobalbalanceOptions ¶
type GlobalbalanceOptions struct { // Gamma Image gamma Gamma float64 // IntOutput Integer output IntOutput bool }
GlobalbalanceOptions optional arguments for vips_globalbalance
func DefaultGlobalbalanceOptions ¶
func DefaultGlobalbalanceOptions() *GlobalbalanceOptions
DefaultGlobalbalanceOptions creates default value for vips_globalbalance optional arguments
type GravityOptions ¶
type GravityOptions struct { // Extend How to generate the extra pixels Extend Extend // Background Color for background pixels Background []float64 }
GravityOptions optional arguments for vips_gravity
func DefaultGravityOptions ¶
func DefaultGravityOptions() *GravityOptions
DefaultGravityOptions creates default value for vips_gravity optional arguments
type GreyOptions ¶
type GreyOptions struct { // Uchar Output an unsigned char image Uchar bool }
GreyOptions optional arguments for vips_grey
func DefaultGreyOptions ¶
func DefaultGreyOptions() *GreyOptions
DefaultGreyOptions creates default value for vips_grey optional arguments
type HeifCompression ¶
type HeifCompression int
HeifCompression represents VipsForeignHeifCompression type
const ( HeifCompressionHevc HeifCompression = C.VIPS_FOREIGN_HEIF_COMPRESSION_HEVC HeifCompressionAvc HeifCompression = C.VIPS_FOREIGN_HEIF_COMPRESSION_AVC HeifCompressionJpeg HeifCompression = C.VIPS_FOREIGN_HEIF_COMPRESSION_JPEG HeifCompressionAv1 HeifCompression = C.VIPS_FOREIGN_HEIF_COMPRESSION_AV1 HeifCompressionLast HeifCompression = C.VIPS_FOREIGN_HEIF_COMPRESSION_LAST )
HeifCompression enum
type HeifEncoder ¶
type HeifEncoder int
HeifEncoder represents VipsForeignHeifEncoder type
const ( HeifEncoderAuto HeifEncoder = C.VIPS_FOREIGN_HEIF_ENCODER_AUTO HeifEncoderAom HeifEncoder = C.VIPS_FOREIGN_HEIF_ENCODER_AOM HeifEncoderRav1e HeifEncoder = C.VIPS_FOREIGN_HEIF_ENCODER_RAV1E HeifEncoderSvt HeifEncoder = C.VIPS_FOREIGN_HEIF_ENCODER_SVT HeifEncoderX265 HeifEncoder = C.VIPS_FOREIGN_HEIF_ENCODER_X265 HeifEncoderLast HeifEncoder = C.VIPS_FOREIGN_HEIF_ENCODER_LAST )
HeifEncoder enum
type HeifloadBufferOptions ¶
type HeifloadBufferOptions struct { // Page First page to load Page int // N Number of pages to load, -1 for all N int // Thumbnail Fetch thumbnail image Thumbnail bool // Unlimited Remove all denial of service limits Unlimited bool // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
HeifloadBufferOptions optional arguments for vips_heifload_buffer
func DefaultHeifloadBufferOptions ¶
func DefaultHeifloadBufferOptions() *HeifloadBufferOptions
DefaultHeifloadBufferOptions creates default value for vips_heifload_buffer optional arguments
type HeifloadOptions ¶
type HeifloadOptions struct { // Page First page to load Page int // N Number of pages to load, -1 for all N int // Thumbnail Fetch thumbnail image Thumbnail bool // Unlimited Remove all denial of service limits Unlimited bool // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
HeifloadOptions optional arguments for vips_heifload
func DefaultHeifloadOptions ¶
func DefaultHeifloadOptions() *HeifloadOptions
DefaultHeifloadOptions creates default value for vips_heifload optional arguments
type HeifloadSourceOptions ¶
type HeifloadSourceOptions struct { // Page First page to load Page int // N Number of pages to load, -1 for all N int // Thumbnail Fetch thumbnail image Thumbnail bool // Unlimited Remove all denial of service limits Unlimited bool // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
HeifloadSourceOptions optional arguments for vips_heifload_source
func DefaultHeifloadSourceOptions ¶
func DefaultHeifloadSourceOptions() *HeifloadSourceOptions
DefaultHeifloadSourceOptions creates default value for vips_heifload_source optional arguments
type HeifsaveBufferOptions ¶
type HeifsaveBufferOptions struct { // Q Q factor Q int // Bitdepth Number of bits per pixel Bitdepth int // Lossless Enable lossless compression Lossless bool // Compression Compression format Compression HeifCompression // Effort CPU effort Effort int // SubsampleMode Select chroma subsample operation mode SubsampleMode Subsample // Encoder Select encoder to use Encoder HeifEncoder // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
HeifsaveBufferOptions optional arguments for vips_heifsave_buffer
func DefaultHeifsaveBufferOptions ¶
func DefaultHeifsaveBufferOptions() *HeifsaveBufferOptions
DefaultHeifsaveBufferOptions creates default value for vips_heifsave_buffer optional arguments
type HeifsaveOptions ¶
type HeifsaveOptions struct { // Q Q factor Q int // Bitdepth Number of bits per pixel Bitdepth int // Lossless Enable lossless compression Lossless bool // Compression Compression format Compression HeifCompression // Effort CPU effort Effort int // SubsampleMode Select chroma subsample operation mode SubsampleMode Subsample // Encoder Select encoder to use Encoder HeifEncoder // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
HeifsaveOptions optional arguments for vips_heifsave
func DefaultHeifsaveOptions ¶
func DefaultHeifsaveOptions() *HeifsaveOptions
DefaultHeifsaveOptions creates default value for vips_heifsave optional arguments
type HeifsaveTargetOptions ¶ added in v1.1.0
type HeifsaveTargetOptions struct { // Q Q factor Q int // Bitdepth Number of bits per pixel Bitdepth int // Lossless Enable lossless compression Lossless bool // Compression Compression format Compression HeifCompression // Effort CPU effort Effort int // SubsampleMode Select chroma subsample operation mode SubsampleMode Subsample // Encoder Select encoder to use Encoder HeifEncoder // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
HeifsaveTargetOptions optional arguments for vips_heifsave_target
func DefaultHeifsaveTargetOptions ¶ added in v1.1.0
func DefaultHeifsaveTargetOptions() *HeifsaveTargetOptions
DefaultHeifsaveTargetOptions creates default value for vips_heifsave_target optional arguments
type HistEqualOptions ¶
type HistEqualOptions struct { // Band Equalise with this band Band int }
HistEqualOptions optional arguments for vips_hist_equal
func DefaultHistEqualOptions ¶
func DefaultHistEqualOptions() *HistEqualOptions
DefaultHistEqualOptions creates default value for vips_hist_equal optional arguments
type HistFindIndexedOptions ¶
type HistFindIndexedOptions struct { // Combine Combine bins like this Combine Combine }
HistFindIndexedOptions optional arguments for vips_hist_find_indexed
func DefaultHistFindIndexedOptions ¶
func DefaultHistFindIndexedOptions() *HistFindIndexedOptions
DefaultHistFindIndexedOptions creates default value for vips_hist_find_indexed optional arguments
type HistFindNdimOptions ¶
type HistFindNdimOptions struct { // Bins Number of bins in each dimension Bins int }
HistFindNdimOptions optional arguments for vips_hist_find_ndim
func DefaultHistFindNdimOptions ¶
func DefaultHistFindNdimOptions() *HistFindNdimOptions
DefaultHistFindNdimOptions creates default value for vips_hist_find_ndim optional arguments
type HistFindOptions ¶
type HistFindOptions struct { // Band Find histogram of band Band int }
HistFindOptions optional arguments for vips_hist_find
func DefaultHistFindOptions ¶
func DefaultHistFindOptions() *HistFindOptions
DefaultHistFindOptions creates default value for vips_hist_find optional arguments
type HistLocalOptions ¶
type HistLocalOptions struct { // MaxSlope Maximum slope (CLAHE) MaxSlope int }
HistLocalOptions optional arguments for vips_hist_local
func DefaultHistLocalOptions ¶
func DefaultHistLocalOptions() *HistLocalOptions
DefaultHistLocalOptions creates default value for vips_hist_local optional arguments
type HoughCircleOptions ¶
type HoughCircleOptions struct { // Scale Scale down dimensions by this factor Scale int // MinRadius Smallest radius to search for MinRadius int // MaxRadius Largest radius to search for MaxRadius int }
HoughCircleOptions optional arguments for vips_hough_circle
func DefaultHoughCircleOptions ¶
func DefaultHoughCircleOptions() *HoughCircleOptions
DefaultHoughCircleOptions creates default value for vips_hough_circle optional arguments
type HoughLineOptions ¶
type HoughLineOptions struct { // Width Horizontal size of parameter space Width int // Height Vertical size of parameter space Height int }
HoughLineOptions optional arguments for vips_hough_line
func DefaultHoughLineOptions ¶
func DefaultHoughLineOptions() *HoughLineOptions
DefaultHoughLineOptions creates default value for vips_hough_line optional arguments
type IccExportOptions ¶
type IccExportOptions struct { // Pcs Set Profile Connection Space Pcs PCS // Intent Rendering intent Intent Intent // BlackPointCompensation Enable black point compensation BlackPointCompensation bool // OutputProfile Filename to load output profile from OutputProfile string // Depth Output device space depth in bits Depth int }
IccExportOptions optional arguments for vips_icc_export
func DefaultIccExportOptions ¶
func DefaultIccExportOptions() *IccExportOptions
DefaultIccExportOptions creates default value for vips_icc_export optional arguments
type IccImportOptions ¶
type IccImportOptions struct { // Pcs Set Profile Connection Space Pcs PCS // Intent Rendering intent Intent Intent // BlackPointCompensation Enable black point compensation BlackPointCompensation bool // Embedded Use embedded input profile, if available Embedded bool // InputProfile Filename to load input profile from InputProfile string }
IccImportOptions optional arguments for vips_icc_import
func DefaultIccImportOptions ¶
func DefaultIccImportOptions() *IccImportOptions
DefaultIccImportOptions creates default value for vips_icc_import optional arguments
type IccTransformOptions ¶
type IccTransformOptions struct { // Pcs Set Profile Connection Space Pcs PCS // Intent Rendering intent Intent Intent // BlackPointCompensation Enable black point compensation BlackPointCompensation bool // Embedded Use embedded input profile, if available Embedded bool // InputProfile Filename to load input profile from InputProfile string // Depth Output device space depth in bits Depth int }
IccTransformOptions optional arguments for vips_icc_transform
func DefaultIccTransformOptions ¶
func DefaultIccTransformOptions() *IccTransformOptions
DefaultIccTransformOptions creates default value for vips_icc_transform optional arguments
type IdentityOptions ¶
type IdentityOptions struct { // Bands Number of bands in LUT Bands int // Ushort Create a 16-bit LUT Ushort bool // Size Size of 16-bit LUT Size int }
IdentityOptions optional arguments for vips_identity
func DefaultIdentityOptions ¶
func DefaultIdentityOptions() *IdentityOptions
DefaultIdentityOptions creates default value for vips_identity optional arguments
type IfthenelseOptions ¶
type IfthenelseOptions struct { // Blend Blend smoothly between then and else parts Blend bool }
IfthenelseOptions optional arguments for vips_ifthenelse
func DefaultIfthenelseOptions ¶
func DefaultIfthenelseOptions() *IfthenelseOptions
DefaultIfthenelseOptions creates default value for vips_ifthenelse optional arguments
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
Image contains a libvips image and manages its lifecycle.
func NewAnalyzeload ¶
func NewAnalyzeload(filename string, options *AnalyzeloadOptions) (*Image, error)
NewAnalyzeload vips_analyzeload load an Analyze6 image
The filename specifies filename to load from.
func NewArrayjoin ¶
func NewArrayjoin(in []*Image, options *ArrayjoinOptions) (*Image, error)
NewArrayjoin vips_arrayjoin join an array of images
The in specifies array of input images.
func NewBandjoin ¶
NewBandjoin vips_bandjoin bandwise join a set of images
The in specifies array of input images.
func NewBandrank ¶
func NewBandrank(in []*Image, options *BandrankOptions) (*Image, error)
NewBandrank vips_bandrank band-wise rank of a set of images
The in specifies array of input images.
func NewBlack ¶
func NewBlack(width int, height int, options *BlackOptions) (*Image, error)
NewBlack vips_black make a black image
The width specifies image width in pixels. The height specifies image height in pixels.
func NewComposite ¶
func NewComposite(in []*Image, mode []BlendMode, options *CompositeOptions) (*Image, error)
NewComposite vips_composite blend an array of images with an array of blend modes
The in specifies array of input images. The mode specifies array of VipsBlendMode to join with.
func NewCsvload ¶
func NewCsvload(filename string, options *CsvloadOptions) (*Image, error)
NewCsvload vips_csvload load csv
The filename specifies filename to load from.
func NewCsvloadSource ¶
func NewCsvloadSource(source *Source, options *CsvloadSourceOptions) (*Image, error)
NewCsvloadSource vips_csvload_source load csv
The source specifies source to load from.
func NewEye ¶
func NewEye(width int, height int, options *EyeOptions) (*Image, error)
NewEye vips_eye make an image showing the eye's spatial response
The width specifies image width in pixels. The height specifies image height in pixels.
func NewFitsload ¶
func NewFitsload(filename string, options *FitsloadOptions) (*Image, error)
NewFitsload vips_fitsload load a FITS image
The filename specifies filename to load from.
func NewFractsurf ¶
NewFractsurf vips_fractsurf make a fractal surface
The width specifies image width in pixels. The height specifies image height in pixels. The fractalDimension specifies fractal dimension.
func NewGaussmat ¶
func NewGaussmat(sigma float64, minAmpl float64, options *GaussmatOptions) (*Image, error)
NewGaussmat vips_gaussmat make a gaussian image
The sigma specifies sigma of Gaussian. The minAmpl specifies minimum amplitude of Gaussian.
func NewGaussnoise ¶
func NewGaussnoise(width int, height int, options *GaussnoiseOptions) (*Image, error)
NewGaussnoise vips_gaussnoise make a gaussnoise image
The width specifies image width in pixels. The height specifies image height in pixels.
func NewGifload ¶
func NewGifload(filename string, options *GifloadOptions) (*Image, error)
NewGifload vips_gifload load GIF with libnsgif
The filename specifies filename to load from.
func NewGifloadBuffer ¶
func NewGifloadBuffer(buf []byte, options *GifloadBufferOptions) (*Image, error)
NewGifloadBuffer vips_gifload_buffer load GIF with libnsgif
func NewGifloadSource ¶
func NewGifloadSource(source *Source, options *GifloadSourceOptions) (*Image, error)
NewGifloadSource vips_gifload_source load gif from source
The source specifies source to load from.
func NewGrey ¶
func NewGrey(width int, height int, options *GreyOptions) (*Image, error)
NewGrey vips_grey make a grey ramp image
The width specifies image width in pixels. The height specifies image height in pixels.
func NewHeifload ¶
func NewHeifload(filename string, options *HeifloadOptions) (*Image, error)
NewHeifload vips_heifload load a HEIF image
The filename specifies filename to load from.
func NewHeifloadBuffer ¶
func NewHeifloadBuffer(buf []byte, options *HeifloadBufferOptions) (*Image, error)
NewHeifloadBuffer vips_heifload_buffer load a HEIF image
func NewHeifloadSource ¶
func NewHeifloadSource(source *Source, options *HeifloadSourceOptions) (*Image, error)
NewHeifloadSource vips_heifload_source load a HEIF image
The source specifies source to load from.
func NewIdentity ¶
func NewIdentity(options *IdentityOptions) (*Image, error)
NewIdentity vips_identity make a 1D image where pixel values are indexes
func NewImageFromBuffer ¶
func NewImageFromBuffer(buf []byte, options *LoadOptions) (*Image, error)
NewImageFromBuffer vips_image_new_from_buffer loads an image buffer and creates a new Image
func NewImageFromFile ¶
func NewImageFromFile(file string, options *LoadOptions) (*Image, error)
NewImageFromFile vips_image_new_from_file loads an image from file and creates a new Image
func NewImageFromMemory ¶
NewImageFromMemory vips_image_new_from_memory loads a raw RGB/RGBA image buffer and creates a new Image
func NewImageFromSource ¶
func NewImageFromSource(s *Source, options *LoadOptions) (*Image, error)
NewImageFromSource vips_image_new_from_source loads a Source and creates a new Image
func NewJp2kload ¶
func NewJp2kload(filename string, options *Jp2kloadOptions) (*Image, error)
NewJp2kload vips_jp2kload load JPEG2000 image
The filename specifies filename to load from.
func NewJp2kloadBuffer ¶
func NewJp2kloadBuffer(buf []byte, options *Jp2kloadBufferOptions) (*Image, error)
NewJp2kloadBuffer vips_jp2kload_buffer load JPEG2000 image
func NewJp2kloadSource ¶
func NewJp2kloadSource(source *Source, options *Jp2kloadSourceOptions) (*Image, error)
NewJp2kloadSource vips_jp2kload_source load JPEG2000 image
The source specifies source to load from.
func NewJpegload ¶
func NewJpegload(filename string, options *JpegloadOptions) (*Image, error)
NewJpegload vips_jpegload load jpeg from file
The filename specifies filename to load from.
func NewJpegloadBuffer ¶
func NewJpegloadBuffer(buf []byte, options *JpegloadBufferOptions) (*Image, error)
NewJpegloadBuffer vips_jpegload_buffer load jpeg from buffer
func NewJpegloadSource ¶
func NewJpegloadSource(source *Source, options *JpegloadSourceOptions) (*Image, error)
NewJpegloadSource vips_jpegload_source load image from jpeg source
The source specifies source to load from.
func NewJxlload ¶ added in v0.2.0
func NewJxlload(filename string, options *JxlloadOptions) (*Image, error)
NewJxlload vips_jxlload load JPEG-XL image
The filename specifies filename to load from.
func NewJxlloadBuffer ¶ added in v0.2.0
func NewJxlloadBuffer(buf []byte, options *JxlloadBufferOptions) (*Image, error)
NewJxlloadBuffer vips_jxlload_buffer load JPEG-XL image
func NewJxlloadSource ¶ added in v0.2.0
func NewJxlloadSource(source *Source, options *JxlloadSourceOptions) (*Image, error)
NewJxlloadSource vips_jxlload_source load JPEG-XL image
The source specifies source to load from.
func NewLogmat ¶
func NewLogmat(sigma float64, minAmpl float64, options *LogmatOptions) (*Image, error)
NewLogmat vips_logmat make a Laplacian of Gaussian image
The sigma specifies radius of Gaussian. The minAmpl specifies minimum amplitude of Gaussian.
func NewMagickload ¶
func NewMagickload(filename string, options *MagickloadOptions) (*Image, error)
NewMagickload vips_magickload load file with ImageMagick
The filename specifies filename to load from.
func NewMagickloadBuffer ¶
func NewMagickloadBuffer(buf []byte, options *MagickloadBufferOptions) (*Image, error)
NewMagickloadBuffer vips_magickload_buffer load buffer with ImageMagick
func NewMaskButterworth ¶
func NewMaskButterworth(width int, height int, order float64, frequencyCutoff float64, amplitudeCutoff float64, options *MaskButterworthOptions) (*Image, error)
NewMaskButterworth vips_mask_butterworth make a butterworth filter
The width specifies image width in pixels. The height specifies image height in pixels. The order specifies filter order. The frequencyCutoff specifies frequency cutoff. The amplitudeCutoff specifies amplitude cutoff.
func NewMaskButterworthBand ¶
func NewMaskButterworthBand(width int, height int, order float64, frequencyCutoffX float64, frequencyCutoffY float64, radius float64, amplitudeCutoff float64, options *MaskButterworthBandOptions) (*Image, error)
NewMaskButterworthBand vips_mask_butterworth_band make a butterworth_band filter
The width specifies image width in pixels. The height specifies image height in pixels. The order specifies filter order. The frequencyCutoffX specifies frequency cutoff x. The frequencyCutoffY specifies frequency cutoff y. The radius specifies radius of circle. The amplitudeCutoff specifies amplitude cutoff.
func NewMaskButterworthRing ¶
func NewMaskButterworthRing(width int, height int, order float64, frequencyCutoff float64, amplitudeCutoff float64, ringwidth float64, options *MaskButterworthRingOptions) (*Image, error)
NewMaskButterworthRing vips_mask_butterworth_ring make a butterworth ring filter
The width specifies image width in pixels. The height specifies image height in pixels. The order specifies filter order. The frequencyCutoff specifies frequency cutoff. The amplitudeCutoff specifies amplitude cutoff. The ringwidth specifies ringwidth.
func NewMaskFractal ¶
func NewMaskFractal(width int, height int, fractalDimension float64, options *MaskFractalOptions) (*Image, error)
NewMaskFractal vips_mask_fractal make fractal filter
The width specifies image width in pixels. The height specifies image height in pixels. The fractalDimension specifies fractal dimension.
func NewMaskGaussian ¶
func NewMaskGaussian(width int, height int, frequencyCutoff float64, amplitudeCutoff float64, options *MaskGaussianOptions) (*Image, error)
NewMaskGaussian vips_mask_gaussian make a gaussian filter
The width specifies image width in pixels. The height specifies image height in pixels. The frequencyCutoff specifies frequency cutoff. The amplitudeCutoff specifies amplitude cutoff.
func NewMaskGaussianBand ¶
func NewMaskGaussianBand(width int, height int, frequencyCutoffX float64, frequencyCutoffY float64, radius float64, amplitudeCutoff float64, options *MaskGaussianBandOptions) (*Image, error)
NewMaskGaussianBand vips_mask_gaussian_band make a gaussian filter
The width specifies image width in pixels. The height specifies image height in pixels. The frequencyCutoffX specifies frequency cutoff x. The frequencyCutoffY specifies frequency cutoff y. The radius specifies radius of circle. The amplitudeCutoff specifies amplitude cutoff.
func NewMaskGaussianRing ¶
func NewMaskGaussianRing(width int, height int, frequencyCutoff float64, amplitudeCutoff float64, ringwidth float64, options *MaskGaussianRingOptions) (*Image, error)
NewMaskGaussianRing vips_mask_gaussian_ring make a gaussian ring filter
The width specifies image width in pixels. The height specifies image height in pixels. The frequencyCutoff specifies frequency cutoff. The amplitudeCutoff specifies amplitude cutoff. The ringwidth specifies ringwidth.
func NewMaskIdeal ¶
func NewMaskIdeal(width int, height int, frequencyCutoff float64, options *MaskIdealOptions) (*Image, error)
NewMaskIdeal vips_mask_ideal make an ideal filter
The width specifies image width in pixels. The height specifies image height in pixels. The frequencyCutoff specifies frequency cutoff.
func NewMaskIdealBand ¶
func NewMaskIdealBand(width int, height int, frequencyCutoffX float64, frequencyCutoffY float64, radius float64, options *MaskIdealBandOptions) (*Image, error)
NewMaskIdealBand vips_mask_ideal_band make an ideal band filter
The width specifies image width in pixels. The height specifies image height in pixels. The frequencyCutoffX specifies frequency cutoff x. The frequencyCutoffY specifies frequency cutoff y. The radius specifies radius of circle.
func NewMaskIdealRing ¶
func NewMaskIdealRing(width int, height int, frequencyCutoff float64, ringwidth float64, options *MaskIdealRingOptions) (*Image, error)
NewMaskIdealRing vips_mask_ideal_ring make an ideal ring filter
The width specifies image width in pixels. The height specifies image height in pixels. The frequencyCutoff specifies frequency cutoff. The ringwidth specifies ringwidth.
func NewMatload ¶ added in v0.0.5
func NewMatload(filename string, options *MatloadOptions) (*Image, error)
NewMatload vips_matload load mat from file
The filename specifies filename to load from.
func NewMatrixload ¶
func NewMatrixload(filename string, options *MatrixloadOptions) (*Image, error)
NewMatrixload vips_matrixload load matrix
The filename specifies filename to load from.
func NewMatrixloadSource ¶
func NewMatrixloadSource(source *Source, options *MatrixloadSourceOptions) (*Image, error)
NewMatrixloadSource vips_matrixload_source load matrix
The source specifies source to load from.
func NewNiftiload ¶ added in v0.2.0
func NewNiftiload(filename string, options *NiftiloadOptions) (*Image, error)
NewNiftiload vips_niftiload load NIfTI volume
The filename specifies filename to load from.
func NewNiftiloadSource ¶ added in v0.2.0
func NewNiftiloadSource(source *Source, options *NiftiloadSourceOptions) (*Image, error)
NewNiftiloadSource vips_niftiload_source load NIfTI volumes
The source specifies source to load from.
func NewOpenexrload ¶
func NewOpenexrload(filename string, options *OpenexrloadOptions) (*Image, error)
NewOpenexrload vips_openexrload load an OpenEXR image
The filename specifies filename to load from.
func NewOpenslideload ¶
func NewOpenslideload(filename string, options *OpenslideloadOptions) (*Image, error)
NewOpenslideload vips_openslideload load file with OpenSlide
The filename specifies filename to load from.
func NewOpenslideloadSource ¶
func NewOpenslideloadSource(source *Source, options *OpenslideloadSourceOptions) (*Image, error)
NewOpenslideloadSource vips_openslideload_source load source with OpenSlide
The source specifies source to load from.
func NewPdfload ¶
func NewPdfload(filename string, options *PdfloadOptions) (*Image, error)
NewPdfload vips_pdfload load PDF from file
The filename specifies filename to load from.
func NewPdfloadBuffer ¶
func NewPdfloadBuffer(buf []byte, options *PdfloadBufferOptions) (*Image, error)
NewPdfloadBuffer vips_pdfload_buffer load PDF from buffer
func NewPdfloadSource ¶
func NewPdfloadSource(source *Source, options *PdfloadSourceOptions) (*Image, error)
NewPdfloadSource vips_pdfload_source load PDF from source
The source specifies source to load from.
func NewPerlin ¶
func NewPerlin(width int, height int, options *PerlinOptions) (*Image, error)
NewPerlin vips_perlin make a perlin noise image
The width specifies image width in pixels. The height specifies image height in pixels.
func NewPngload ¶
func NewPngload(filename string, options *PngloadOptions) (*Image, error)
NewPngload vips_pngload load png from file
The filename specifies filename to load from.
func NewPngloadBuffer ¶
func NewPngloadBuffer(buf []byte, options *PngloadBufferOptions) (*Image, error)
NewPngloadBuffer vips_pngload_buffer load png from buffer
func NewPngloadSource ¶
func NewPngloadSource(source *Source, options *PngloadSourceOptions) (*Image, error)
NewPngloadSource vips_pngload_source load png from source
The source specifies source to load from.
func NewPpmload ¶
func NewPpmload(filename string, options *PpmloadOptions) (*Image, error)
NewPpmload vips_ppmload load ppm from file
The filename specifies filename to load from.
func NewPpmloadBuffer ¶ added in v1.1.1
func NewPpmloadBuffer(buf []byte, options *PpmloadBufferOptions) (*Image, error)
NewPpmloadBuffer vips_ppmload_buffer load ppm from buffer
func NewPpmloadSource ¶
func NewPpmloadSource(source *Source, options *PpmloadSourceOptions) (*Image, error)
NewPpmloadSource vips_ppmload_source load ppm from source
The source specifies source to load from.
func NewRadload ¶
func NewRadload(filename string, options *RadloadOptions) (*Image, error)
NewRadload vips_radload load a Radiance image from a file
The filename specifies filename to load from.
func NewRadloadBuffer ¶
func NewRadloadBuffer(buf []byte, options *RadloadBufferOptions) (*Image, error)
NewRadloadBuffer vips_radload_buffer load rad from buffer
func NewRadloadSource ¶
func NewRadloadSource(source *Source, options *RadloadSourceOptions) (*Image, error)
NewRadloadSource vips_radload_source load rad from source
The source specifies source to load from.
func NewRawload ¶
func NewRawload(filename string, width int, height int, bands int, options *RawloadOptions) (*Image, error)
NewRawload vips_rawload load raw data from a file
The filename specifies filename to load from. The width specifies image width in pixels. The height specifies image height in pixels. The bands specifies number of bands in image.
func NewSdf ¶
NewSdf vips_sdf create an SDF image
The width specifies image width in pixels. The height specifies image height in pixels. The shape specifies sDF shape to create.
func NewSines ¶
func NewSines(width int, height int, options *SinesOptions) (*Image, error)
NewSines vips_sines make a 2D sine wave
The width specifies image width in pixels. The height specifies image height in pixels.
func NewSvgload ¶
func NewSvgload(filename string, options *SvgloadOptions) (*Image, error)
NewSvgload vips_svgload load SVG with rsvg
The filename specifies filename to load from.
func NewSvgloadBuffer ¶
func NewSvgloadBuffer(buf []byte, options *SvgloadBufferOptions) (*Image, error)
NewSvgloadBuffer vips_svgload_buffer load SVG with rsvg
func NewSvgloadSource ¶
func NewSvgloadSource(source *Source, options *SvgloadSourceOptions) (*Image, error)
NewSvgloadSource vips_svgload_source load svg from source
The source specifies source to load from.
func NewSwitch ¶
NewSwitch vips_switch find the index of the first non-zero pixel in tests
The tests specifies table of images to test.
func NewSystem ¶
func NewSystem(cmdFormat string, options *SystemOptions) (*Image, error)
NewSystem vips_system run an external command
The cmdFormat specifies command to run.
func NewText ¶
func NewText(text string, options *TextOptions) (*Image, error)
NewText vips_text make a text image
The text specifies text to render.
func NewThumbnail ¶
func NewThumbnail(filename string, width int, options *ThumbnailOptions) (*Image, error)
NewThumbnail vips_thumbnail generate thumbnail from file
The filename specifies filename to read from. The width specifies size to this width.
func NewThumbnailBuffer ¶
func NewThumbnailBuffer(buf []byte, width int, options *ThumbnailBufferOptions) (*Image, error)
NewThumbnailBuffer vips_thumbnail_buffer generate thumbnail from buffer
The width specifies size to this width.
func NewThumbnailSource ¶
func NewThumbnailSource(source *Source, width int, options *ThumbnailSourceOptions) (*Image, error)
NewThumbnailSource vips_thumbnail_source generate thumbnail from source
The source specifies source to load from. The width specifies size to this width.
func NewTiffload ¶
func NewTiffload(filename string, options *TiffloadOptions) (*Image, error)
NewTiffload vips_tiffload load tiff from file
The filename specifies filename to load from.
func NewTiffloadBuffer ¶
func NewTiffloadBuffer(buf []byte, options *TiffloadBufferOptions) (*Image, error)
NewTiffloadBuffer vips_tiffload_buffer load tiff from buffer
func NewTiffloadSource ¶
func NewTiffloadSource(source *Source, options *TiffloadSourceOptions) (*Image, error)
NewTiffloadSource vips_tiffload_source load tiff from source
The source specifies source to load from.
func NewTonelut ¶
func NewTonelut(options *TonelutOptions) (*Image, error)
NewTonelut vips_tonelut build a look-up table
func NewVipsload ¶
func NewVipsload(filename string, options *VipsloadOptions) (*Image, error)
NewVipsload vips_vipsload load vips from file
The filename specifies filename to load from.
func NewVipsloadSource ¶
func NewVipsloadSource(source *Source, options *VipsloadSourceOptions) (*Image, error)
NewVipsloadSource vips_vipsload_source load vips from source
The source specifies source to load from.
func NewWebpload ¶
func NewWebpload(filename string, options *WebploadOptions) (*Image, error)
NewWebpload vips_webpload load webp from file
The filename specifies filename to load from.
func NewWebploadBuffer ¶
func NewWebploadBuffer(buf []byte, options *WebploadBufferOptions) (*Image, error)
NewWebploadBuffer vips_webpload_buffer load webp from buffer
func NewWebploadSource ¶
func NewWebploadSource(source *Source, options *WebploadSourceOptions) (*Image, error)
NewWebploadSource vips_webpload_source load webp from source
The source specifies source to load from.
func NewWorley ¶
func NewWorley(width int, height int, options *WorleyOptions) (*Image, error)
NewWorley vips_worley make a worley noise image
The width specifies image width in pixels. The height specifies image height in pixels.
func NewXyz ¶
func NewXyz(width int, height int, options *XyzOptions) (*Image, error)
NewXyz vips_xyz make an image where pixel values are coordinates
The width specifies image width in pixels. The height specifies image height in pixels.
func NewZone ¶
func NewZone(width int, height int, options *ZoneOptions) (*Image, error)
NewZone vips_zone make a zone plate
The width specifies image width in pixels. The height specifies image height in pixels.
func (*Image) Affine ¶
Affine vips_affine affine transform of an image
The a specifies coefficient a (horizontal scale). The b specifies coefficient b (horizontal shear). The c specifies coefficient c (vertical shear). The d specifies coefficient d (vertical scale).
func (*Image) Background ¶ added in v0.6.0
Background get the background of image.
func (*Image) BandFormat ¶ added in v0.6.0
func (r *Image) BandFormat() BandFormat
BandFormat returns the current band format
func (*Image) Bandbool ¶
func (r *Image) Bandbool(boolean OperationBoolean) error
Bandbool vips_bandbool boolean operation across image bands
The boolean specifies boolean to perform.
func (*Image) Bandfold ¶
func (r *Image) Bandfold(options *BandfoldOptions) error
Bandfold vips_bandfold fold up x axis into bands
func (*Image) BandjoinConst ¶
BandjoinConst vips_bandjoin_const append a constant band to an image
The c specifies array of constants to add.
func (*Image) Bandunfold ¶
func (r *Image) Bandunfold(options *BandunfoldOptions) error
Bandunfold vips_bandunfold unfold image bands into x axis
func (*Image) Boolean ¶
func (r *Image) Boolean(right *Image, boolean OperationBoolean) error
Boolean vips_boolean boolean operation on two images
The right specifies right-hand image argument. The boolean specifies boolean to perform.
func (*Image) BooleanConst ¶
func (r *Image) BooleanConst(boolean OperationBoolean, c []float64) error
BooleanConst vips_boolean_const boolean operations against a constant
The boolean specifies boolean to perform. The c specifies array of constants.
func (*Image) Canny ¶
func (r *Image) Canny(options *CannyOptions) error
Canny vips_canny Canny edge detector
func (*Image) Case ¶
Case vips_case use pixel values to pick cases from an array of images
The cases specifies array of case images.
func (*Image) Cast ¶
func (r *Image) Cast(format BandFormat, options *CastOptions) error
Cast vips_cast cast an image
The format specifies format to cast to.
func (*Image) Clamp ¶
func (r *Image) Clamp(options *ClampOptions) error
Clamp vips_clamp clamp values of an image
func (*Image) Colourspace ¶
func (r *Image) Colourspace(space Interpretation, options *ColourspaceOptions) error
Colourspace vips_colourspace convert to a new colorspace
The space specifies destination color space.
func (*Image) Compass ¶
func (r *Image) Compass(mask *Image, options *CompassOptions) error
Compass vips_compass convolve with rotating mask
The mask specifies input matrix image.
func (*Image) Complex ¶
func (r *Image) Complex(cmplx OperationComplex) error
Complex vips_complex perform a complex operation on an image
The cmplx specifies complex to perform.
func (*Image) Complex2 ¶
func (r *Image) Complex2(right *Image, cmplx OperationComplex2) error
Complex2 vips_complex2 complex binary operations on two images
The right specifies right-hand image argument. The cmplx specifies binary complex operation to perform.
func (*Image) Complexform ¶
Complexform vips_complexform form a complex image from two real images
The right specifies right-hand image argument.
func (*Image) Complexget ¶
func (r *Image) Complexget(get OperationComplexget) error
Complexget vips_complexget get a component from a complex image
The get specifies complex to perform.
func (*Image) Composite2 ¶
func (r *Image) Composite2(overlay *Image, mode BlendMode, options *Composite2Options) error
Composite2 vips_composite2 blend a pair of images with a blend mode
The overlay specifies overlay image. The mode specifies vipsBlendMode to join with.
func (*Image) Conv ¶
func (r *Image) Conv(mask *Image, options *ConvOptions) error
Conv vips_conv convolution operation
The mask specifies input matrix image.
func (*Image) Conva ¶
func (r *Image) Conva(mask *Image, options *ConvaOptions) error
Conva vips_conva approximate integer convolution
The mask specifies input matrix image.
func (*Image) Convasep ¶
func (r *Image) Convasep(mask *Image, options *ConvasepOptions) error
Convasep vips_convasep approximate separable integer convolution
The mask specifies input matrix image.
func (*Image) Convf ¶
Convf vips_convf float convolution operation
The mask specifies input matrix image.
func (*Image) Convi ¶
Convi vips_convi int convolution operation
The mask specifies input matrix image.
func (*Image) Convsep ¶
func (r *Image) Convsep(mask *Image, options *ConvsepOptions) error
Convsep vips_convsep separable convolution operation
The mask specifies input matrix image.
func (*Image) Copy ¶
func (r *Image) Copy(options *CopyOptions) (*Image, error)
Copy vips_copy copy an image
func (*Image) Countlines ¶
Countlines vips_countlines count lines in an image
The direction specifies countlines left-right or up-down.
func (*Image) Csvsave ¶
func (r *Image) Csvsave(filename string, options *CsvsaveOptions) error
Csvsave vips_csvsave save image to csv
The filename specifies filename to save to.
func (*Image) CsvsaveTarget ¶ added in v1.1.0
func (r *Image) CsvsaveTarget(target *Target, options *CsvsaveTargetOptions) error
CsvsaveTarget vips_csvsave_target save image to csv
The target specifies target to save to.
func (*Image) Divide ¶
Divide vips_divide divide two images
The right specifies right-hand image argument.
func (*Image) DrawCircle ¶
func (r *Image) DrawCircle(ink []float64, cx int, cy int, radius int, options *DrawCircleOptions) error
DrawCircle vips_draw_circle draw a circle on an image
The ink specifies color for pixels. The cx specifies centre of draw_circle. The cy specifies centre of draw_circle. The radius specifies radius in pixels.
func (*Image) DrawFlood ¶
DrawFlood vips_draw_flood flood-fill an area
The ink specifies color for pixels. The x specifies drawFlood start point. The y specifies drawFlood start point.
func (*Image) DrawImage ¶
DrawImage vips_draw_image paint an image into another image
The sub specifies sub-image to insert into main image. The x specifies draw image here. The y specifies draw image here.
func (*Image) DrawLine ¶
DrawLine vips_draw_line draw a line on an image
The ink specifies color for pixels. The x1 specifies start of draw_line. The y1 specifies start of draw_line. The x2 specifies end of draw_line. The y2 specifies end of draw_line.
func (*Image) DrawMask ¶
DrawMask vips_draw_mask draw a mask on an image
The ink specifies color for pixels. The mask specifies mask of pixels to draw. The x specifies draw mask here. The y specifies draw mask here.
func (*Image) DrawRect ¶
func (r *Image) DrawRect(ink []float64, left int, top int, width int, height int, options *DrawRectOptions) error
DrawRect vips_draw_rect paint a rectangle on an image
The ink specifies color for pixels. The left specifies rect to fill. The top specifies rect to fill. The width specifies rect to fill. The height specifies rect to fill.
func (*Image) DrawSmudge ¶
DrawSmudge vips_draw_smudge blur a rectangle on an image
The left specifies rect to fill. The top specifies rect to fill. The width specifies rect to fill. The height specifies rect to fill.
func (*Image) Dzsave ¶ added in v0.2.0
func (r *Image) Dzsave(filename string, options *DzsaveOptions) error
Dzsave vips_dzsave save image to deepzoom file
The filename specifies filename to save to.
func (*Image) DzsaveBuffer ¶ added in v0.2.0
func (r *Image) DzsaveBuffer(options *DzsaveBufferOptions) ([]byte, error)
DzsaveBuffer vips_dzsave_buffer save image to dz buffer
func (*Image) DzsaveTarget ¶ added in v1.1.0
func (r *Image) DzsaveTarget(target *Target, options *DzsaveTargetOptions) error
DzsaveTarget vips_dzsave_target save image to deepzoom target
The target specifies target to save to.
func (*Image) Embed ¶
Embed vips_embed embed an image in a larger image
The x specifies left edge of input in output. The y specifies top edge of input in output. The width specifies image width in pixels. The height specifies image height in pixels.
func (*Image) EmbedMultiPage ¶
func (r *Image) EmbedMultiPage(left, top, width, height int, options *EmbedMultiPageOptions) error
EmbedMultiPage embeds the image in a larger image with the specified dimensions When the image has multiple pages (e.g. animated GIF), this embeds each frame
func (*Image) Exif ¶
Exif extracts all EXIF metadata from the image and returns it as a map of field names to string values
func (*Image) ExtractArea ¶
ExtractArea vips_extract_area extract an area from an image
The left specifies left edge of extract area. The top specifies top edge of extract area. The width specifies width of extract area. The height specifies height of extract area.
func (*Image) ExtractAreaMultiPage ¶
ExtractAreaMultiPage extracts a region from the image, working correctly with multi-page (animated) images
func (*Image) ExtractBand ¶
func (r *Image) ExtractBand(band int, options *ExtractBandOptions) error
ExtractBand vips_extract_band extract band from an image
The band specifies band to extract.
func (*Image) Falsecolour ¶
Falsecolour vips_falsecolour false-color an image
func (*Image) Fastcor ¶
Fastcor vips_fastcor fast correlation
The ref specifies input reference image.
func (*Image) FillNearest ¶
FillNearest vips_fill_nearest fill image zeros with nearest non-zero pixel
func (*Image) Fitssave ¶
func (r *Image) Fitssave(filename string, options *FitssaveOptions) error
Fitssave vips_fitssave save image to fits file
The filename specifies filename to save to.
func (*Image) Flatten ¶
func (r *Image) Flatten(options *FlattenOptions) error
Flatten vips_flatten flatten alpha out of an image
func (*Image) Freqmult ¶
Freqmult vips_freqmult frequency-domain filtering
The mask specifies input mask image.
func (*Image) Gamma ¶
func (r *Image) Gamma(options *GammaOptions) error
Gamma vips_gamma gamma an image
func (*Image) Gaussblur ¶
func (r *Image) Gaussblur(sigma float64, options *GaussblurOptions) error
Gaussblur vips_gaussblur gaussian blur
The sigma specifies sigma of Gaussian.
func (*Image) GetArrayDouble ¶ added in v0.8.2
GetArrayDouble vips_image_get_array_double retrieves a double array metadata value
func (*Image) GetArrayInt ¶ added in v0.8.2
GetArrayInt vips_image_get_array_int retrieves an integer array metadata value
func (*Image) GetAsString ¶ added in v0.6.0
GetAsString vips_image_get_as_string retrieves any metadata value converted to string format
func (*Image) GetBlob ¶ added in v0.6.0
GetBlob vips_image_get_blob retrieves binary metadata from the image by field name
func (*Image) GetDouble ¶ added in v0.6.0
GetDouble vips_image_get_double retrieves a double-precision floating point metadata value
func (*Image) GetFields ¶ added in v0.6.0
GetFields vips_image_get_fields returns a list of all metadata field names in the image
func (*Image) GetICCProfile ¶ added in v0.6.0
GetICCProfile retrieves the ICC profile data (if any) from the image.
func (*Image) GetInt ¶ added in v0.6.0
GetInt vips_image_get_int retrieves an integer metadata value
func (*Image) GetString ¶ added in v0.6.0
GetString vips_image_get_string retrieves a string metadata value
func (*Image) Getpoint ¶
Getpoint vips_getpoint read a point from an image
The x specifies point to read. The y specifies point to read.
func (*Image) Gifsave ¶
func (r *Image) Gifsave(filename string, options *GifsaveOptions) error
Gifsave vips_gifsave save as gif
The filename specifies filename to save to.
func (*Image) GifsaveBuffer ¶
func (r *Image) GifsaveBuffer(options *GifsaveBufferOptions) ([]byte, error)
GifsaveBuffer vips_gifsave_buffer save as gif
func (*Image) GifsaveTarget ¶ added in v1.1.0
func (r *Image) GifsaveTarget(target *Target, options *GifsaveTargetOptions) error
GifsaveTarget vips_gifsave_target save as gif
The target specifies target to save to.
func (*Image) Globalbalance ¶
func (r *Image) Globalbalance(options *GlobalbalanceOptions) error
Globalbalance vips_globalbalance global balance an image mosaic
func (*Image) Gravity ¶
func (r *Image) Gravity(direction CompassDirection, width int, height int, options *GravityOptions) error
Gravity vips_gravity place an image within a larger image with a certain gravity
The direction specifies direction to place image within width/height. The width specifies image width in pixels. The height specifies image height in pixels.
func (*Image) Grid ¶
Grid vips_grid grid an image
The tileHeight specifies chop into tiles this high. The across specifies number of tiles across. The down specifies number of tiles down.
func (*Image) HasField ¶ added in v0.8.2
HasField vips_image_get_typeof checks if the image has a metadata field with the given name
func (*Image) HasICCProfile ¶ added in v0.6.0
HasICCProfile checks whether the image has an ICC profile embedded.
func (*Image) HasIPTC ¶ added in v0.6.0
HasIPTC returns a boolean whether the image in question has IPTC data associated with it.
func (*Image) Heifsave ¶
func (r *Image) Heifsave(filename string, options *HeifsaveOptions) error
Heifsave vips_heifsave save image in HEIF format
The filename specifies filename to save to.
func (*Image) HeifsaveBuffer ¶
func (r *Image) HeifsaveBuffer(options *HeifsaveBufferOptions) ([]byte, error)
HeifsaveBuffer vips_heifsave_buffer save image in HEIF format
func (*Image) HeifsaveTarget ¶ added in v1.1.0
func (r *Image) HeifsaveTarget(target *Target, options *HeifsaveTargetOptions) error
HeifsaveTarget vips_heifsave_target save image in HEIF format
The target specifies target to save to.
func (*Image) HistEntropy ¶
HistEntropy vips_hist_entropy estimate image entropy
func (*Image) HistEqual ¶
func (r *Image) HistEqual(options *HistEqualOptions) error
HistEqual vips_hist_equal histogram equalisation
func (*Image) HistFind ¶
func (r *Image) HistFind(options *HistFindOptions) error
HistFind vips_hist_find find image histogram
func (*Image) HistFindIndexed ¶
func (r *Image) HistFindIndexed(index *Image, options *HistFindIndexedOptions) error
HistFindIndexed vips_hist_find_indexed find indexed image histogram
The index specifies index image.
func (*Image) HistFindNdim ¶
func (r *Image) HistFindNdim(options *HistFindNdimOptions) error
HistFindNdim vips_hist_find_ndim find n-dimensional image histogram
func (*Image) HistIsmonotonic ¶
HistIsmonotonic vips_hist_ismonotonic test for monotonicity
func (*Image) HistLocal ¶
func (r *Image) HistLocal(width int, height int, options *HistLocalOptions) error
HistLocal vips_hist_local local histogram equalisation
The width specifies window width in pixels. The height specifies window height in pixels.
func (*Image) HistMatch ¶
HistMatch vips_hist_match match two histograms
The ref specifies reference histogram.
func (*Image) HoughCircle ¶
func (r *Image) HoughCircle(options *HoughCircleOptions) error
HoughCircle vips_hough_circle find hough circle transform
func (*Image) HoughLine ¶
func (r *Image) HoughLine(options *HoughLineOptions) error
HoughLine vips_hough_line find hough line transform
func (*Image) IccExport ¶
func (r *Image) IccExport(options *IccExportOptions) error
IccExport vips_icc_export output to device with ICC profile
func (*Image) IccImport ¶
func (r *Image) IccImport(options *IccImportOptions) error
IccImport vips_icc_import import from device with ICC profile
func (*Image) IccTransform ¶
func (r *Image) IccTransform(outputProfile string, options *IccTransformOptions) error
IccTransform vips_icc_transform transform between devices with ICC profiles
The outputProfile specifies filename to load output profile from.
func (*Image) Ifthenelse ¶
func (r *Image) Ifthenelse(in1 *Image, in2 *Image, options *IfthenelseOptions) error
Ifthenelse vips_ifthenelse ifthenelse an image
The in1 specifies source for TRUE pixels. The in2 specifies source for FALSE pixels.
func (*Image) Insert ¶
Insert vips_insert insert image @sub into @main at @x, @y
The sub specifies sub-image to insert into main image. The x specifies left edge of sub in main. The y specifies top edge of sub in main.
func (*Image) Interpretation ¶
func (r *Image) Interpretation() Interpretation
Interpretation returns the current interpretation of the color space of the image.
func (*Image) Invertlut ¶
func (r *Image) Invertlut(options *InvertlutOptions) error
Invertlut vips_invertlut build an inverted look-up table
func (*Image) Invfft ¶
func (r *Image) Invfft(options *InvfftOptions) error
Invfft vips_invfft inverse FFT
func (*Image) IsColorSpaceSupported ¶ added in v0.6.0
IsColorSpaceSupported returns a boolean whether the image's color space is supported by libvips.
func (*Image) Join ¶
func (r *Image) Join(in2 *Image, direction Direction, options *JoinOptions) error
Join vips_join join a pair of images
The in2 specifies second input image. The direction specifies join left-right or up-down.
func (*Image) Jp2ksave ¶
func (r *Image) Jp2ksave(filename string, options *Jp2ksaveOptions) error
Jp2ksave vips_jp2ksave save image in JPEG2000 format
The filename specifies filename to save to.
func (*Image) Jp2ksaveBuffer ¶
func (r *Image) Jp2ksaveBuffer(options *Jp2ksaveBufferOptions) ([]byte, error)
Jp2ksaveBuffer vips_jp2ksave_buffer save image in JPEG2000 format
func (*Image) Jp2ksaveTarget ¶ added in v1.1.0
func (r *Image) Jp2ksaveTarget(target *Target, options *Jp2ksaveTargetOptions) error
Jp2ksaveTarget vips_jp2ksave_target save image in JPEG2000 format
The target specifies target to save to.
func (*Image) Jpegsave ¶
func (r *Image) Jpegsave(filename string, options *JpegsaveOptions) error
Jpegsave vips_jpegsave save image to jpeg file
The filename specifies filename to save to.
func (*Image) JpegsaveBuffer ¶
func (r *Image) JpegsaveBuffer(options *JpegsaveBufferOptions) ([]byte, error)
JpegsaveBuffer vips_jpegsave_buffer save image to jpeg buffer
func (*Image) JpegsaveTarget ¶ added in v1.1.0
func (r *Image) JpegsaveTarget(target *Target, options *JpegsaveTargetOptions) error
JpegsaveTarget vips_jpegsave_target save image to jpeg target
The target specifies target to save to.
func (*Image) Jxlsave ¶ added in v0.2.0
func (r *Image) Jxlsave(filename string, options *JxlsaveOptions) error
Jxlsave vips_jxlsave save image in JPEG-XL format
The filename specifies filename to save to.
func (*Image) JxlsaveBuffer ¶ added in v0.2.0
func (r *Image) JxlsaveBuffer(options *JxlsaveBufferOptions) ([]byte, error)
JxlsaveBuffer vips_jxlsave_buffer save image in JPEG-XL format
func (*Image) JxlsaveTarget ¶ added in v1.1.0
func (r *Image) JxlsaveTarget(target *Target, options *JxlsaveTargetOptions) error
JxlsaveTarget vips_jxlsave_target save image in JPEG-XL format
The target specifies target to save to.
func (*Image) Lab2XYZ ¶
func (r *Image) Lab2XYZ(options *Lab2XYZOptions) error
Lab2XYZ vips_Lab2XYZ transform CIELAB to XYZ
func (*Image) Label ¶
func (r *Image) Label(text string, x, y int, options *LabelOptions) error
Label adds text to the image
func (*Image) Labelregions ¶
Labelregions vips_labelregions label regions in an image
func (*Image) Linear ¶
func (r *Image) Linear(a []float64, b []float64, options *LinearOptions) error
Linear vips_linear calculate (a * in + b)
The a specifies multiply by this. The b specifies add this.
func (*Image) Linecache ¶
func (r *Image) Linecache(options *LinecacheOptions) (*Image, error)
Linecache vips_linecache cache an image as a set of lines
func (*Image) Magicksave ¶
func (r *Image) Magicksave(filename string, options *MagicksaveOptions) error
Magicksave vips_magicksave save file with ImageMagick
The filename specifies filename to save to.
func (*Image) MagicksaveBuffer ¶
func (r *Image) MagicksaveBuffer(options *MagicksaveBufferOptions) ([]byte, error)
MagicksaveBuffer vips_magicksave_buffer save image to magick buffer
func (*Image) Mapim ¶
func (r *Image) Mapim(index *Image, options *MapimOptions) error
Mapim vips_mapim resample with a map image
The index specifies index pixels with this.
func (*Image) Maplut ¶
func (r *Image) Maplut(lut *Image, options *MaplutOptions) error
Maplut vips_maplut map an image though a lut
The lut specifies look-up table image.
func (*Image) Match ¶
func (r *Image) Match(sec *Image, xr1 int, yr1 int, xs1 int, ys1 int, xr2 int, yr2 int, xs2 int, ys2 int, options *MatchOptions) error
Match vips_match first-order match of two images
The sec specifies secondary image. The xr1 specifies position of first reference tie-point. The yr1 specifies position of first reference tie-point. The xs1 specifies position of first secondary tie-point. The ys1 specifies position of first secondary tie-point. The xr2 specifies position of second reference tie-point. The yr2 specifies position of second reference tie-point. The xs2 specifies position of second secondary tie-point. The ys2 specifies position of second secondary tie-point.
func (*Image) Math ¶
func (r *Image) Math(math OperationMath) error
Math vips_math apply a math operation to an image
The math specifies math to perform.
func (*Image) Math2 ¶
func (r *Image) Math2(right *Image, math2 OperationMath2) error
Math2 vips_math2 binary math operations
The right specifies right-hand image argument. The math2 specifies math to perform.
func (*Image) Math2Const ¶
func (r *Image) Math2Const(math2 OperationMath2, c []float64) error
Math2Const vips_math2_const binary math operations with a constant
The math2 specifies math to perform. The c specifies array of constants.
func (*Image) Matrixinvert ¶
Matrixinvert vips_matrixinvert invert a matrix
func (*Image) Matrixmultiply ¶ added in v1.1.1
Matrixmultiply vips_matrixmultiply multiply two matrices
The right specifies second matrix to multiply.
func (*Image) Matrixprint ¶
func (r *Image) Matrixprint(options *MatrixprintOptions) error
Matrixprint vips_matrixprint print matrix
func (*Image) Matrixsave ¶
func (r *Image) Matrixsave(filename string, options *MatrixsaveOptions) error
Matrixsave vips_matrixsave save image to matrix
The filename specifies filename to save to.
func (*Image) MatrixsaveTarget ¶ added in v1.1.0
func (r *Image) MatrixsaveTarget(target *Target, options *MatrixsaveTargetOptions) error
MatrixsaveTarget vips_matrixsave_target save image to matrix
The target specifies target to save to.
func (*Image) Max ¶
func (r *Image) Max(options *MaxOptions) (float64, error)
Max vips_max find image maximum
func (*Image) Maxpair ¶
Maxpair vips_maxpair maximum of a pair of images
The right specifies right-hand image argument.
func (*Image) Measure ¶
func (r *Image) Measure(h int, v int, options *MeasureOptions) error
Measure vips_measure measure a set of patches on a color chart
The h specifies number of patches across chart. The v specifies number of patches down chart.
func (*Image) Merge ¶
Merge vips_merge merge two images
The sec specifies secondary image. The direction specifies horizontal or vertical merge. The dx specifies horizontal displacement from sec to ref. The dy specifies vertical displacement from sec to ref.
func (*Image) Min ¶
func (r *Image) Min(options *MinOptions) (float64, error)
Min vips_min find image minimum
func (*Image) Minpair ¶
Minpair vips_minpair minimum of a pair of images
The right specifies right-hand image argument.
func (*Image) ModulateHSV ¶ added in v0.6.0
ModulateHSV modulates the image HSV values based on the supplier parameters.
func (*Image) Morph ¶
func (r *Image) Morph(mask *Image, morph OperationMorphology) error
Morph vips_morph morphology operation
The mask specifies input matrix image. The morph specifies morphological operation to perform.
func (*Image) Mosaic ¶
func (r *Image) Mosaic(sec *Image, direction Direction, xref int, yref int, xsec int, ysec int, options *MosaicOptions) error
Mosaic vips_mosaic mosaic two images
The sec specifies secondary image. The direction specifies horizontal or vertical mosaic. The xref specifies position of reference tie-point. The yref specifies position of reference tie-point. The xsec specifies position of secondary tie-point. The ysec specifies position of secondary tie-point.
func (*Image) Mosaic1 ¶
func (r *Image) Mosaic1(sec *Image, direction Direction, xr1 int, yr1 int, xs1 int, ys1 int, xr2 int, yr2 int, xs2 int, ys2 int, options *Mosaic1Options) error
Mosaic1 vips_mosaic1 first-order mosaic of two images
The sec specifies secondary image. The direction specifies horizontal or vertical mosaic. The xr1 specifies position of first reference tie-point. The yr1 specifies position of first reference tie-point. The xs1 specifies position of first secondary tie-point. The ys1 specifies position of first secondary tie-point. The xr2 specifies position of second reference tie-point. The yr2 specifies position of second reference tie-point. The xs2 specifies position of second secondary tie-point. The ys2 specifies position of second secondary tie-point.
func (*Image) Msb ¶
func (r *Image) Msb(options *MsbOptions) error
Msb vips_msb pick most-significant byte from an image
func (*Image) Multiply ¶
Multiply vips_multiply multiply two images
The right specifies right-hand image argument.
func (*Image) Niftisave ¶ added in v0.2.0
func (r *Image) Niftisave(filename string, options *NiftisaveOptions) error
Niftisave vips_niftisave save image to nifti file
The filename specifies filename to save to.
func (*Image) Orientation ¶
Orientation returns the orientation number as it appears in the Exif, if present
func (*Image) PageHeight ¶
PageHeight return the height of a single page
func (*Image) Pages ¶
Pages returns the number of pages in the Image For animated images this corresponds to the number of frames
func (*Image) Percent ¶
Percent vips_percent find threshold for percent of pixels
The percent specifies percent of pixels.
func (*Image) Phasecor ¶
Phasecor vips_phasecor calculate phase correlation
The in2 specifies second input image.
func (*Image) Pngsave ¶
func (r *Image) Pngsave(filename string, options *PngsaveOptions) error
Pngsave vips_pngsave save image to png file
The filename specifies filename to save to.
func (*Image) PngsaveBuffer ¶
func (r *Image) PngsaveBuffer(options *PngsaveBufferOptions) ([]byte, error)
PngsaveBuffer vips_pngsave_buffer save image to png buffer
func (*Image) PngsaveTarget ¶ added in v1.1.0
func (r *Image) PngsaveTarget(target *Target, options *PngsaveTargetOptions) error
PngsaveTarget vips_pngsave_target save image to target as PNG
The target specifies target to save to.
func (*Image) Ppmsave ¶
func (r *Image) Ppmsave(filename string, options *PpmsaveOptions) error
Ppmsave vips_ppmsave save image to ppm file
The filename specifies filename to save to.
func (*Image) PpmsaveTarget ¶ added in v1.1.0
func (r *Image) PpmsaveTarget(target *Target, options *PpmsaveTargetOptions) error
PpmsaveTarget vips_ppmsave_target save to ppm
The target specifies target to save to.
func (*Image) Premultiply ¶
func (r *Image) Premultiply(options *PremultiplyOptions) error
Premultiply vips_premultiply premultiply image alpha
func (*Image) Quadratic ¶
func (r *Image) Quadratic(coeff *Image, options *QuadraticOptions) error
Quadratic vips_quadratic resample an image with a quadratic transform
The coeff specifies coefficient matrix.
func (*Image) Radsave ¶
func (r *Image) Radsave(filename string, options *RadsaveOptions) error
Radsave vips_radsave save image to Radiance file
The filename specifies filename to save to.
func (*Image) RadsaveBuffer ¶
func (r *Image) RadsaveBuffer(options *RadsaveBufferOptions) ([]byte, error)
RadsaveBuffer vips_radsave_buffer save image to Radiance buffer
func (*Image) RadsaveTarget ¶ added in v1.1.0
func (r *Image) RadsaveTarget(target *Target, options *RadsaveTargetOptions) error
RadsaveTarget vips_radsave_target save image to Radiance target
The target specifies target to save to.
func (*Image) Rank ¶
Rank vips_rank rank filter
The width specifies window width in pixels. The height specifies window height in pixels. The index specifies select pixel at index.
func (*Image) Rawsave ¶
func (r *Image) Rawsave(filename string, options *RawsaveOptions) error
Rawsave vips_rawsave save image to raw file
The filename specifies filename to save to.
func (*Image) RawsaveBuffer ¶
func (r *Image) RawsaveBuffer(options *RawsaveBufferOptions) ([]byte, error)
RawsaveBuffer vips_rawsave_buffer write raw image to buffer
func (*Image) RawsaveTarget ¶ added in v1.1.0
func (r *Image) RawsaveTarget(target *Target, options *RawsaveTargetOptions) error
RawsaveTarget vips_rawsave_target write raw image to target
The target specifies target to save to.
func (*Image) Recomb ¶
Recomb vips_recomb linear recombination with matrix
The m specifies matrix of coefficients.
func (*Image) Reduce ¶
func (r *Image) Reduce(hshrink float64, vshrink float64, options *ReduceOptions) error
Reduce vips_reduce reduce an image
The hshrink specifies horizontal shrink factor. The vshrink specifies vertical shrink factor.
func (*Image) Reduceh ¶
func (r *Image) Reduceh(hshrink float64, options *ReducehOptions) error
Reduceh vips_reduceh shrink an image horizontally
The hshrink specifies horizontal shrink factor.
func (*Image) Reducev ¶
func (r *Image) Reducev(vshrink float64, options *ReducevOptions) error
Reducev vips_reducev shrink an image vertically
The vshrink specifies vertical shrink factor.
func (*Image) Relational ¶
func (r *Image) Relational(right *Image, relational OperationRelational) error
Relational vips_relational relational operation on two images
The right specifies right-hand image argument. The relational specifies relational to perform.
func (*Image) RelationalConst ¶
func (r *Image) RelationalConst(relational OperationRelational, c []float64) error
RelationalConst vips_relational_const relational operations against a constant
The relational specifies relational to perform. The c specifies array of constants.
func (*Image) Remainder ¶
Remainder vips_remainder remainder after integer division of two images
The right specifies right-hand image argument.
func (*Image) RemainderConst ¶
RemainderConst vips_remainder_const remainder after integer division of an image and a constant
The c specifies array of constants.
func (*Image) Remosaic ¶ added in v1.1.1
Remosaic vips_remosaic rebuild an mosaiced image
The oldStr specifies search for this string. The newStr specifies and swap for this string.
func (*Image) RemoveExif ¶
RemoveExif removes all metadata from the image (except ICC profile)
func (*Image) RemoveICCProfile ¶
RemoveICCProfile removes the ICC Profile information from the image. Typically, browsers and other software assume images without profile to be in the sRGB color space.
func (*Image) RemoveOrientation ¶ added in v0.6.0
RemoveOrientation removes the EXIF orientation information of the image.
func (*Image) Replicate ¶
Replicate vips_replicate replicate an image
The across specifies repeat this many times horizontally. The down specifies repeat this many times vertically.
func (*Image) Resize ¶
func (r *Image) Resize(scale float64, options *ResizeOptions) error
Resize vips_resize resize an image
The scale specifies scale image by this factor.
func (*Image) Rot45 ¶
func (r *Image) Rot45(options *Rot45Options) error
Rot45 vips_rot45 rotate an image
func (*Image) RotMultiPage ¶ added in v0.7.0
RotMultiPage rotates an image by a multiple of 90 degrees, working correctly with multi-page (animated) images
func (*Image) Rotate ¶
func (r *Image) Rotate(angle float64, options *RotateOptions) error
Rotate vips_rotate rotate an image by a number of degrees
The angle specifies rotate clockwise by this many degrees.
func (*Image) Round ¶
func (r *Image) Round(round OperationRound) error
Round vips_round perform a round function on an image
The round specifies rounding operation to perform.
func (*Image) SRGB2scRGB ¶
SRGB2scRGB vips_sRGB2scRGB convert an sRGB image to scRGB
func (*Image) ScRGB2BW ¶
func (r *Image) ScRGB2BW(options *ScRGB2BWOptions) error
ScRGB2BW vips_scRGB2BW convert scRGB to BW
func (*Image) ScRGB2sRGB ¶
func (r *Image) ScRGB2sRGB(options *ScRGB2sRGBOptions) error
ScRGB2sRGB vips_scRGB2sRGB convert scRGB to sRGB
func (*Image) Scale ¶
func (r *Image) Scale(options *ScaleOptions) error
Scale vips_scale scale an image to uchar
func (*Image) Sequential ¶
func (r *Image) Sequential(options *SequentialOptions) (*Image, error)
Sequential vips_sequential check sequential access
func (*Image) SetDouble ¶ added in v0.6.0
SetDouble vips_image_set_double sets a double-precision floating point metadata value
func (*Image) SetOrientation ¶ added in v0.6.0
SetOrientation sets the orientation in the EXIF header of the associated image.
func (*Image) SetPageHeight ¶
SetPageHeight set the height of a page For animated images this is used when "unrolling" back to frames
func (*Image) SetPages ¶ added in v0.6.0
SetPages sets the number of pages in the Image For animated images this corresponds to the number of frames
func (*Image) SetString ¶ added in v0.6.0
SetString vips_image_set_string sets a string metadata value
func (*Image) Sharpen ¶
func (r *Image) Sharpen(options *SharpenOptions) error
Sharpen vips_sharpen unsharp masking for print
func (*Image) Shrink ¶
func (r *Image) Shrink(hshrink float64, vshrink float64, options *ShrinkOptions) error
Shrink vips_shrink shrink an image
The hshrink specifies horizontal shrink factor. The vshrink specifies vertical shrink factor.
func (*Image) Shrinkh ¶
func (r *Image) Shrinkh(hshrink int, options *ShrinkhOptions) error
Shrinkh vips_shrinkh shrink an image horizontally
The hshrink specifies horizontal shrink factor.
func (*Image) Shrinkv ¶
func (r *Image) Shrinkv(vshrink int, options *ShrinkvOptions) error
Shrinkv vips_shrinkv shrink an image vertically
The vshrink specifies vertical shrink factor.
func (*Image) Similarity ¶
func (r *Image) Similarity(options *SimilarityOptions) error
Similarity vips_similarity similarity transform of an image
func (*Image) Smartcrop ¶
func (r *Image) Smartcrop(width int, height int, options *SmartcropOptions) error
Smartcrop vips_smartcrop extract an area from an image
The width specifies width of extract area. The height specifies height of extract area.
func (*Image) Stdif ¶
func (r *Image) Stdif(width int, height int, options *StdifOptions) error
Stdif vips_stdif statistical difference
The width specifies window width in pixels. The height specifies window height in pixels.
func (*Image) Subsample ¶
func (r *Image) Subsample(xfac int, yfac int, options *SubsampleOptions) error
Subsample vips_subsample subsample an image
The xfac specifies horizontal subsample factor. The yfac specifies vertical subsample factor.
func (*Image) Subtract ¶
Subtract vips_subtract subtract two images
The right specifies right-hand image argument.
func (*Image) ThumbnailImage ¶
func (r *Image) ThumbnailImage(width int, options *ThumbnailImageOptions) error
ThumbnailImage vips_thumbnail_image generate thumbnail from image
The width specifies size to this width.
func (*Image) Tiffsave ¶
func (r *Image) Tiffsave(filename string, options *TiffsaveOptions) error
Tiffsave vips_tiffsave save image to tiff file
The filename specifies filename to save to.
func (*Image) TiffsaveBuffer ¶
func (r *Image) TiffsaveBuffer(options *TiffsaveBufferOptions) ([]byte, error)
TiffsaveBuffer vips_tiffsave_buffer save image to tiff buffer
func (*Image) TiffsaveTarget ¶ added in v1.1.0
func (r *Image) TiffsaveTarget(target *Target, options *TiffsaveTargetOptions) error
TiffsaveTarget vips_tiffsave_target save image to tiff target
The target specifies target to save to.
func (*Image) Tilecache ¶
func (r *Image) Tilecache(options *TilecacheOptions) (*Image, error)
Tilecache vips_tilecache cache an image as a set of tiles
func (*Image) Transpose3d ¶
func (r *Image) Transpose3d(options *Transpose3dOptions) error
Transpose3d vips_transpose3d transpose3d an image
func (*Image) Unpremultiply ¶
func (r *Image) Unpremultiply(options *UnpremultiplyOptions) error
Unpremultiply vips_unpremultiply unpremultiply image alpha
func (*Image) Vipssave ¶
func (r *Image) Vipssave(filename string, options *VipssaveOptions) error
Vipssave vips_vipssave save image to file in vips format
The filename specifies filename to save to.
func (*Image) VipssaveTarget ¶ added in v1.1.0
func (r *Image) VipssaveTarget(target *Target, options *VipssaveTargetOptions) error
VipssaveTarget vips_vipssave_target save image to target in vips format
The target specifies target to save to.
func (*Image) Webpsave ¶
func (r *Image) Webpsave(filename string, options *WebpsaveOptions) error
Webpsave vips_webpsave save as WebP
The filename specifies filename to save to.
func (*Image) WebpsaveBuffer ¶
func (r *Image) WebpsaveBuffer(options *WebpsaveBufferOptions) ([]byte, error)
WebpsaveBuffer vips_webpsave_buffer save as WebP
func (*Image) WebpsaveTarget ¶ added in v1.1.0
func (r *Image) WebpsaveTarget(target *Target, options *WebpsaveTargetOptions) error
WebpsaveTarget vips_webpsave_target save as WebP
The target specifies target to save to.
func (*Image) Wrap ¶
func (r *Image) Wrap(options *WrapOptions) error
Wrap vips_wrap wrap image origin
func (*Image) XYZ2Lab ¶
func (r *Image) XYZ2Lab(options *XYZ2LabOptions) error
XYZ2Lab vips_XYZ2Lab transform XYZ to Lab
type ImageType ¶
type ImageType string
ImageType represents an image type
const ( ImageTypeUnknown ImageType = "unknown" ImageTypeJpeg ImageType = "jpeg" ImageTypeGif ImageType = "gif" ImageTypePng ImageType = "png" ImageTypeWebp ImageType = "webp" ImageTypeHeif ImageType = "heif" ImageTypeSvg ImageType = "svg" ImageTypeTiff ImageType = "tiff" ImageTypeJp2k ImageType = "jp2k" ImageTypeAvif ImageType = "avif" ImageTypePdf ImageType = "pdf" ImageTypeBmp ImageType = "bmp" ImageTypeMagick ImageType = "magick" ImageTypeAnalyze ImageType = "analyze" ImageTypeCsv ImageType = "csv" ImageTypeDz ImageType = "dz" ImageTypeFits ImageType = "fits" ImageTypeJxl ImageType = "jxl" ImageTypeMat ImageType = "mat" ImageTypeMatrix ImageType = "matrix" ImageTypeOpenexr ImageType = "openexr" ImageTypeOpenslide ImageType = "openslide" ImageTypePpm ImageType = "ppm" ImageTypeRad ImageType = "rad" ImageTypeRaw ImageType = "raw" ImageTypeVips ImageType = "vips" )
ImageType enum
type InsertOptions ¶
type InsertOptions struct { // Expand Expand output to hold all of both inputs Expand bool // Background Color for new pixels Background []float64 }
InsertOptions optional arguments for vips_insert
func DefaultInsertOptions ¶
func DefaultInsertOptions() *InsertOptions
DefaultInsertOptions creates default value for vips_insert optional arguments
type Intent ¶
type Intent int
Intent represents VipsIntent type
const ( IntentPerceptual Intent = C.VIPS_INTENT_PERCEPTUAL IntentRelative Intent = C.VIPS_INTENT_RELATIVE IntentSaturation Intent = C.VIPS_INTENT_SATURATION IntentAbsolute Intent = C.VIPS_INTENT_ABSOLUTE IntentAuto Intent = C.VIPS_INTENT_AUTO IntentLast Intent = C.VIPS_INTENT_LAST )
Intent enum
type Interesting ¶
type Interesting int
Interesting represents VipsInteresting type
const ( InterestingNone Interesting = C.VIPS_INTERESTING_NONE InterestingCentre Interesting = C.VIPS_INTERESTING_CENTRE InterestingEntropy Interesting = C.VIPS_INTERESTING_ENTROPY InterestingAttention Interesting = C.VIPS_INTERESTING_ATTENTION InterestingLow Interesting = C.VIPS_INTERESTING_LOW InterestingHigh Interesting = C.VIPS_INTERESTING_HIGH InterestingAll Interesting = C.VIPS_INTERESTING_ALL InterestingLast Interesting = C.VIPS_INTERESTING_LAST )
Interesting enum
type Interpolate ¶
type Interpolate struct {
// contains filtered or unexported fields
}
Interpolate represents VipsInterpolate type
func NewInterpolate ¶
func NewInterpolate(name InterpolateType) *Interpolate
NewInterpolate creates a new Interpolate with the given name Valid names include: "nearest", "bilinear", "bicubic", "lbb", "nohalo", "vsqbs"
type InterpolateType ¶
type InterpolateType string
InterpolateType represents the type of interpolation to use
const ( InterpolateNearest InterpolateType = "nearest" InterpolateBilinear InterpolateType = "bilinear" InterpolateBicubic InterpolateType = "bicubic" InterpolateLbb InterpolateType = "lbb" // Lanczos3 InterpolateNohalo InterpolateType = "nohalo" InterpolateVsqbs InterpolateType = "vsqbs" )
InterpolateType enum - these values match the predefined interpolators in libvips
type Interpretation ¶
type Interpretation int
Interpretation represents VipsInterpretation type
const ( InterpretationError Interpretation = C.VIPS_INTERPRETATION_ERROR InterpretationMultiband Interpretation = C.VIPS_INTERPRETATION_MULTIBAND InterpretationBW Interpretation = C.VIPS_INTERPRETATION_B_W InterpretationHistogram Interpretation = C.VIPS_INTERPRETATION_HISTOGRAM InterpretationXyz Interpretation = C.VIPS_INTERPRETATION_XYZ InterpretationLab Interpretation = C.VIPS_INTERPRETATION_LAB InterpretationCmyk Interpretation = C.VIPS_INTERPRETATION_CMYK InterpretationLabq Interpretation = C.VIPS_INTERPRETATION_LABQ InterpretationRgb Interpretation = C.VIPS_INTERPRETATION_RGB InterpretationCmc Interpretation = C.VIPS_INTERPRETATION_CMC InterpretationLch Interpretation = C.VIPS_INTERPRETATION_LCH InterpretationLabs Interpretation = C.VIPS_INTERPRETATION_LABS InterpretationSrgb Interpretation = C.VIPS_INTERPRETATION_sRGB InterpretationYxy Interpretation = C.VIPS_INTERPRETATION_YXY InterpretationFourier Interpretation = C.VIPS_INTERPRETATION_FOURIER InterpretationRgb16 Interpretation = C.VIPS_INTERPRETATION_RGB16 InterpretationGrey16 Interpretation = C.VIPS_INTERPRETATION_GREY16 InterpretationMatrix Interpretation = C.VIPS_INTERPRETATION_MATRIX InterpretationScrgb Interpretation = C.VIPS_INTERPRETATION_scRGB InterpretationHsv Interpretation = C.VIPS_INTERPRETATION_HSV InterpretationLast Interpretation = C.VIPS_INTERPRETATION_LAST )
Interpretation enum
type InvertlutOptions ¶
type InvertlutOptions struct { // Size LUT size to generate Size int }
InvertlutOptions optional arguments for vips_invertlut
func DefaultInvertlutOptions ¶
func DefaultInvertlutOptions() *InvertlutOptions
DefaultInvertlutOptions creates default value for vips_invertlut optional arguments
type InvfftOptions ¶
type InvfftOptions struct { // Real Output only the real part of the transform Real bool }
InvfftOptions optional arguments for vips_invfft
func DefaultInvfftOptions ¶
func DefaultInvfftOptions() *InvfftOptions
DefaultInvfftOptions creates default value for vips_invfft optional arguments
type JoinOptions ¶
type JoinOptions struct { // Expand Expand output to hold all of both inputs Expand bool // Shim Pixels between images Shim int // Background Colour for new pixels Background []float64 // Align Align on the low, centre or high coordinate edge Align Align }
JoinOptions optional arguments for vips_join
func DefaultJoinOptions ¶
func DefaultJoinOptions() *JoinOptions
DefaultJoinOptions creates default value for vips_join optional arguments
type Jp2kloadBufferOptions ¶
type Jp2kloadBufferOptions struct { // Page Load this page from the image Page int // Oneshot Load images a frame at a time Oneshot bool // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
Jp2kloadBufferOptions optional arguments for vips_jp2kload_buffer
func DefaultJp2kloadBufferOptions ¶
func DefaultJp2kloadBufferOptions() *Jp2kloadBufferOptions
DefaultJp2kloadBufferOptions creates default value for vips_jp2kload_buffer optional arguments
type Jp2kloadOptions ¶
type Jp2kloadOptions struct { // Page Load this page from the image Page int // Oneshot Load images a frame at a time Oneshot bool // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
Jp2kloadOptions optional arguments for vips_jp2kload
func DefaultJp2kloadOptions ¶
func DefaultJp2kloadOptions() *Jp2kloadOptions
DefaultJp2kloadOptions creates default value for vips_jp2kload optional arguments
type Jp2kloadSourceOptions ¶
type Jp2kloadSourceOptions struct { // Page Load this page from the image Page int // Oneshot Load images a frame at a time Oneshot bool // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
Jp2kloadSourceOptions optional arguments for vips_jp2kload_source
func DefaultJp2kloadSourceOptions ¶
func DefaultJp2kloadSourceOptions() *Jp2kloadSourceOptions
DefaultJp2kloadSourceOptions creates default value for vips_jp2kload_source optional arguments
type Jp2ksaveBufferOptions ¶
type Jp2ksaveBufferOptions struct { // TileWidth Tile width in pixels TileWidth int // TileHeight Tile height in pixels TileHeight int // Lossless Enable lossless compression Lossless bool // Q Q factor Q int // SubsampleMode Select chroma subsample operation mode SubsampleMode Subsample // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
Jp2ksaveBufferOptions optional arguments for vips_jp2ksave_buffer
func DefaultJp2ksaveBufferOptions ¶
func DefaultJp2ksaveBufferOptions() *Jp2ksaveBufferOptions
DefaultJp2ksaveBufferOptions creates default value for vips_jp2ksave_buffer optional arguments
type Jp2ksaveOptions ¶
type Jp2ksaveOptions struct { // TileWidth Tile width in pixels TileWidth int // TileHeight Tile height in pixels TileHeight int // Lossless Enable lossless compression Lossless bool // Q Q factor Q int // SubsampleMode Select chroma subsample operation mode SubsampleMode Subsample // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
Jp2ksaveOptions optional arguments for vips_jp2ksave
func DefaultJp2ksaveOptions ¶
func DefaultJp2ksaveOptions() *Jp2ksaveOptions
DefaultJp2ksaveOptions creates default value for vips_jp2ksave optional arguments
type Jp2ksaveTargetOptions ¶ added in v1.1.0
type Jp2ksaveTargetOptions struct { // TileWidth Tile width in pixels TileWidth int // TileHeight Tile height in pixels TileHeight int // Lossless Enable lossless compression Lossless bool // Q Q factor Q int // SubsampleMode Select chroma subsample operation mode SubsampleMode Subsample // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
Jp2ksaveTargetOptions optional arguments for vips_jp2ksave_target
func DefaultJp2ksaveTargetOptions ¶ added in v1.1.0
func DefaultJp2ksaveTargetOptions() *Jp2ksaveTargetOptions
DefaultJp2ksaveTargetOptions creates default value for vips_jp2ksave_target optional arguments
type JpegloadBufferOptions ¶
type JpegloadBufferOptions struct { // Shrink Shrink factor on load Shrink int // Autorotate Rotate image using exif orientation Autorotate bool // Unlimited Remove all denial of service limits Unlimited bool // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
JpegloadBufferOptions optional arguments for vips_jpegload_buffer
func DefaultJpegloadBufferOptions ¶
func DefaultJpegloadBufferOptions() *JpegloadBufferOptions
DefaultJpegloadBufferOptions creates default value for vips_jpegload_buffer optional arguments
type JpegloadOptions ¶
type JpegloadOptions struct { // Shrink Shrink factor on load Shrink int // Autorotate Rotate image using exif orientation Autorotate bool // Unlimited Remove all denial of service limits Unlimited bool // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
JpegloadOptions optional arguments for vips_jpegload
func DefaultJpegloadOptions ¶
func DefaultJpegloadOptions() *JpegloadOptions
DefaultJpegloadOptions creates default value for vips_jpegload optional arguments
type JpegloadSourceOptions ¶
type JpegloadSourceOptions struct { // Shrink Shrink factor on load Shrink int // Autorotate Rotate image using exif orientation Autorotate bool // Unlimited Remove all denial of service limits Unlimited bool // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
JpegloadSourceOptions optional arguments for vips_jpegload_source
func DefaultJpegloadSourceOptions ¶
func DefaultJpegloadSourceOptions() *JpegloadSourceOptions
DefaultJpegloadSourceOptions creates default value for vips_jpegload_source optional arguments
type JpegsaveBufferOptions ¶
type JpegsaveBufferOptions struct { // Q Q factor Q int // OptimizeCoding Compute optimal Huffman coding tables OptimizeCoding bool // Interlace Generate an interlaced (progressive) jpeg Interlace bool // TrellisQuant Apply trellis quantisation to each 8x8 block TrellisQuant bool // OvershootDeringing Apply overshooting to samples with extreme values OvershootDeringing bool // OptimizeScans Split spectrum of DCT coefficients into separate scans OptimizeScans bool // QuantTable Use predefined quantization table with given index QuantTable int // SubsampleMode Select chroma subsample operation mode SubsampleMode Subsample // RestartInterval Add restart markers every specified number of mcu RestartInterval int // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
JpegsaveBufferOptions optional arguments for vips_jpegsave_buffer
func DefaultJpegsaveBufferOptions ¶
func DefaultJpegsaveBufferOptions() *JpegsaveBufferOptions
DefaultJpegsaveBufferOptions creates default value for vips_jpegsave_buffer optional arguments
type JpegsaveOptions ¶
type JpegsaveOptions struct { // Q Q factor Q int // OptimizeCoding Compute optimal Huffman coding tables OptimizeCoding bool // Interlace Generate an interlaced (progressive) jpeg Interlace bool // TrellisQuant Apply trellis quantisation to each 8x8 block TrellisQuant bool // OvershootDeringing Apply overshooting to samples with extreme values OvershootDeringing bool // OptimizeScans Split spectrum of DCT coefficients into separate scans OptimizeScans bool // QuantTable Use predefined quantization table with given index QuantTable int // SubsampleMode Select chroma subsample operation mode SubsampleMode Subsample // RestartInterval Add restart markers every specified number of mcu RestartInterval int // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
JpegsaveOptions optional arguments for vips_jpegsave
func DefaultJpegsaveOptions ¶
func DefaultJpegsaveOptions() *JpegsaveOptions
DefaultJpegsaveOptions creates default value for vips_jpegsave optional arguments
type JpegsaveTargetOptions ¶ added in v1.1.0
type JpegsaveTargetOptions struct { // Q Q factor Q int // OptimizeCoding Compute optimal Huffman coding tables OptimizeCoding bool // Interlace Generate an interlaced (progressive) jpeg Interlace bool // TrellisQuant Apply trellis quantisation to each 8x8 block TrellisQuant bool // OvershootDeringing Apply overshooting to samples with extreme values OvershootDeringing bool // OptimizeScans Split spectrum of DCT coefficients into separate scans OptimizeScans bool // QuantTable Use predefined quantization table with given index QuantTable int // SubsampleMode Select chroma subsample operation mode SubsampleMode Subsample // RestartInterval Add restart markers every specified number of mcu RestartInterval int // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
JpegsaveTargetOptions optional arguments for vips_jpegsave_target
func DefaultJpegsaveTargetOptions ¶ added in v1.1.0
func DefaultJpegsaveTargetOptions() *JpegsaveTargetOptions
DefaultJpegsaveTargetOptions creates default value for vips_jpegsave_target optional arguments
type JxlloadBufferOptions ¶ added in v0.2.0
type JxlloadBufferOptions struct { // Page First page to load Page int // N Number of pages to load, -1 for all N int // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
JxlloadBufferOptions optional arguments for vips_jxlload_buffer
func DefaultJxlloadBufferOptions ¶ added in v0.2.0
func DefaultJxlloadBufferOptions() *JxlloadBufferOptions
DefaultJxlloadBufferOptions creates default value for vips_jxlload_buffer optional arguments
type JxlloadOptions ¶ added in v0.2.0
type JxlloadOptions struct { // Page First page to load Page int // N Number of pages to load, -1 for all N int // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
JxlloadOptions optional arguments for vips_jxlload
func DefaultJxlloadOptions ¶ added in v0.2.0
func DefaultJxlloadOptions() *JxlloadOptions
DefaultJxlloadOptions creates default value for vips_jxlload optional arguments
type JxlloadSourceOptions ¶ added in v0.2.0
type JxlloadSourceOptions struct { // Page First page to load Page int // N Number of pages to load, -1 for all N int // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
JxlloadSourceOptions optional arguments for vips_jxlload_source
func DefaultJxlloadSourceOptions ¶ added in v0.2.0
func DefaultJxlloadSourceOptions() *JxlloadSourceOptions
DefaultJxlloadSourceOptions creates default value for vips_jxlload_source optional arguments
type JxlsaveBufferOptions ¶ added in v0.2.0
type JxlsaveBufferOptions struct { // Tier Decode speed tier Tier int // Distance Target butteraugli distance Distance float64 // Effort Encoding effort Effort int // Lossless Enable lossless compression Lossless bool // Q Quality factor Q int // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
JxlsaveBufferOptions optional arguments for vips_jxlsave_buffer
func DefaultJxlsaveBufferOptions ¶ added in v0.2.0
func DefaultJxlsaveBufferOptions() *JxlsaveBufferOptions
DefaultJxlsaveBufferOptions creates default value for vips_jxlsave_buffer optional arguments
type JxlsaveOptions ¶ added in v0.2.0
type JxlsaveOptions struct { // Tier Decode speed tier Tier int // Distance Target butteraugli distance Distance float64 // Effort Encoding effort Effort int // Lossless Enable lossless compression Lossless bool // Q Quality factor Q int // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
JxlsaveOptions optional arguments for vips_jxlsave
func DefaultJxlsaveOptions ¶ added in v0.2.0
func DefaultJxlsaveOptions() *JxlsaveOptions
DefaultJxlsaveOptions creates default value for vips_jxlsave optional arguments
type JxlsaveTargetOptions ¶ added in v1.1.0
type JxlsaveTargetOptions struct { // Tier Decode speed tier Tier int // Distance Target butteraugli distance Distance float64 // Effort Encoding effort Effort int // Lossless Enable lossless compression Lossless bool // Q Quality factor Q int // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
JxlsaveTargetOptions optional arguments for vips_jxlsave_target
func DefaultJxlsaveTargetOptions ¶ added in v1.1.0
func DefaultJxlsaveTargetOptions() *JxlsaveTargetOptions
DefaultJxlsaveTargetOptions creates default value for vips_jxlsave_target optional arguments
type Keep ¶
type Keep int
Keep represents VipsForeignKeep type
const ( KeepNone Keep = C.VIPS_FOREIGN_KEEP_NONE KeepExif Keep = C.VIPS_FOREIGN_KEEP_EXIF KeepXmp Keep = C.VIPS_FOREIGN_KEEP_XMP KeepIptc Keep = C.VIPS_FOREIGN_KEEP_IPTC KeepIcc Keep = C.VIPS_FOREIGN_KEEP_ICC KeepOther Keep = C.VIPS_FOREIGN_KEEP_OTHER KeepAll Keep = C.VIPS_FOREIGN_KEEP_ALL )
Keep enum
type Kernel ¶
type Kernel int
Kernel represents VipsKernel type
const ( KernelNearest Kernel = C.VIPS_KERNEL_NEAREST KernelLinear Kernel = C.VIPS_KERNEL_LINEAR KernelCubic Kernel = C.VIPS_KERNEL_CUBIC KernelMitchell Kernel = C.VIPS_KERNEL_MITCHELL KernelLanczos2 Kernel = C.VIPS_KERNEL_LANCZOS2 KernelLanczos3 Kernel = C.VIPS_KERNEL_LANCZOS3 KernelMks2013 Kernel = C.VIPS_KERNEL_MKS2013 KernelMks2021 Kernel = C.VIPS_KERNEL_MKS2021 KernelLast Kernel = C.VIPS_KERNEL_LAST )
Kernel enum
type Lab2XYZOptions ¶
type Lab2XYZOptions struct { // Temp Color temperature Temp []float64 }
Lab2XYZOptions optional arguments for vips_Lab2XYZ
func DefaultLab2XYZOptions ¶
func DefaultLab2XYZOptions() *Lab2XYZOptions
DefaultLab2XYZOptions creates default value for vips_Lab2XYZ optional arguments
type LabelOptions ¶
type LabelOptions struct { // Font name Font string // Text size Size int // Text alignment Align Align // Text color components [0-255] Color []float64 // Text opacity (0-1) Opacity float64 }
LabelOptions are options for Label method
func DefaultLabelOptions ¶
func DefaultLabelOptions() *LabelOptions
DefaultLabelOptions creates default options for Label
type LinearOptions ¶
type LinearOptions struct { // Uchar Output should be uchar Uchar bool }
LinearOptions optional arguments for vips_linear
func DefaultLinearOptions ¶
func DefaultLinearOptions() *LinearOptions
DefaultLinearOptions creates default value for vips_linear optional arguments
type LinecacheOptions ¶
type LinecacheOptions struct { // TileHeight Tile height in pixels TileHeight int // Access Expected access pattern Access Access // Threaded Allow threaded access Threaded bool // Persistent Keep cache between evaluations Persistent bool }
LinecacheOptions optional arguments for vips_linecache
func DefaultLinecacheOptions ¶
func DefaultLinecacheOptions() *LinecacheOptions
DefaultLinecacheOptions creates default value for vips_linecache optional arguments
type LoadOptions ¶
type LoadOptions struct { // N Number of pages to load, -1 for all N int // Page First page to load Page int // Dpi Resolution in DPI Dpi int // Autorotate Rotate image using exif orientation Autorotate bool // FailOnError Fail on first error FailOnError bool // Shrink Shrink factor for jpeg load Shrink int // Thumbnail Load the thumbnail instead of main image (for HEIF) Thumbnail bool // Unlimited Allow without size restrictions Unlimited bool // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access }
LoadOptions are options for loading an image. Some are type-specific.
func DefaultLoadOptions ¶
func DefaultLoadOptions() *LoadOptions
DefaultLoadOptions creates default LoadOptions
func (*LoadOptions) OptionString ¶
func (i *LoadOptions) OptionString() string
OptionString convert import params to option_string
type LogLevel ¶
type LogLevel int
LogLevel log level
const ( LogLevelError LogLevel = C.G_LOG_LEVEL_ERROR LogLevelCritical LogLevel = C.G_LOG_LEVEL_CRITICAL LogLevelWarning LogLevel = C.G_LOG_LEVEL_WARNING LogLevelMessage LogLevel = C.G_LOG_LEVEL_MESSAGE LogLevelInfo LogLevel = C.G_LOG_LEVEL_INFO LogLevelDebug LogLevel = C.G_LOG_LEVEL_DEBUG )
LogLevel enum
type LoggingHandlerFunction ¶
LoggingHandlerFunction logging handler function
type LogmatOptions ¶
type LogmatOptions struct { // Separable Generate separable Gaussian Separable bool // Precision Generate with this precision Precision Precision }
LogmatOptions optional arguments for vips_logmat
func DefaultLogmatOptions ¶
func DefaultLogmatOptions() *LogmatOptions
DefaultLogmatOptions creates default value for vips_logmat optional arguments
type MagickloadBufferOptions ¶
type MagickloadBufferOptions struct { // Density Canvas resolution for rendering vector formats like SVG Density string // Page First page to load Page int // N Number of pages to load, -1 for all N int // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
MagickloadBufferOptions optional arguments for vips_magickload_buffer
func DefaultMagickloadBufferOptions ¶
func DefaultMagickloadBufferOptions() *MagickloadBufferOptions
DefaultMagickloadBufferOptions creates default value for vips_magickload_buffer optional arguments
type MagickloadOptions ¶
type MagickloadOptions struct { // Density Canvas resolution for rendering vector formats like SVG Density string // Page First page to load Page int // N Number of pages to load, -1 for all N int // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
MagickloadOptions optional arguments for vips_magickload
func DefaultMagickloadOptions ¶
func DefaultMagickloadOptions() *MagickloadOptions
DefaultMagickloadOptions creates default value for vips_magickload optional arguments
type MagicksaveBufferOptions ¶
type MagicksaveBufferOptions struct { // Format Format to save in Format string // Quality Quality to use Quality int // OptimizeGifFrames Apply GIF frames optimization OptimizeGifFrames bool // OptimizeGifTransparency Apply GIF transparency optimization OptimizeGifTransparency bool // Bitdepth Number of bits per pixel Bitdepth int // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
MagicksaveBufferOptions optional arguments for vips_magicksave_buffer
func DefaultMagicksaveBufferOptions ¶
func DefaultMagicksaveBufferOptions() *MagicksaveBufferOptions
DefaultMagicksaveBufferOptions creates default value for vips_magicksave_buffer optional arguments
type MagicksaveOptions ¶
type MagicksaveOptions struct { // Format Format to save in Format string // Quality Quality to use Quality int // OptimizeGifFrames Apply GIF frames optimization OptimizeGifFrames bool // OptimizeGifTransparency Apply GIF transparency optimization OptimizeGifTransparency bool // Bitdepth Number of bits per pixel Bitdepth int // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
MagicksaveOptions optional arguments for vips_magicksave
func DefaultMagicksaveOptions ¶
func DefaultMagicksaveOptions() *MagicksaveOptions
DefaultMagicksaveOptions creates default value for vips_magicksave optional arguments
type MapimOptions ¶
type MapimOptions struct { // Interpolate Interpolate pixels with this Interpolate *Interpolate // Background Background value Background []float64 // Premultiplied Images have premultiplied alpha Premultiplied bool // Extend How to generate the extra pixels Extend Extend }
MapimOptions optional arguments for vips_mapim
func DefaultMapimOptions ¶
func DefaultMapimOptions() *MapimOptions
DefaultMapimOptions creates default value for vips_mapim optional arguments
type MaplutOptions ¶
type MaplutOptions struct { // Band Apply one-band lut to this band of in Band int }
MaplutOptions optional arguments for vips_maplut
func DefaultMaplutOptions ¶
func DefaultMaplutOptions() *MaplutOptions
DefaultMaplutOptions creates default value for vips_maplut optional arguments
type MaskButterworthBandOptions ¶
type MaskButterworthBandOptions struct { // Uchar Output an unsigned char image Uchar bool // Nodc Remove DC component Nodc bool // Reject Invert the sense of the filter Reject bool // Optical Rotate quadrants to optical space Optical bool }
MaskButterworthBandOptions optional arguments for vips_mask_butterworth_band
func DefaultMaskButterworthBandOptions ¶
func DefaultMaskButterworthBandOptions() *MaskButterworthBandOptions
DefaultMaskButterworthBandOptions creates default value for vips_mask_butterworth_band optional arguments
type MaskButterworthOptions ¶
type MaskButterworthOptions struct { // Uchar Output an unsigned char image Uchar bool // Nodc Remove DC component Nodc bool // Reject Invert the sense of the filter Reject bool // Optical Rotate quadrants to optical space Optical bool }
MaskButterworthOptions optional arguments for vips_mask_butterworth
func DefaultMaskButterworthOptions ¶
func DefaultMaskButterworthOptions() *MaskButterworthOptions
DefaultMaskButterworthOptions creates default value for vips_mask_butterworth optional arguments
type MaskButterworthRingOptions ¶
type MaskButterworthRingOptions struct { // Uchar Output an unsigned char image Uchar bool // Nodc Remove DC component Nodc bool // Reject Invert the sense of the filter Reject bool // Optical Rotate quadrants to optical space Optical bool }
MaskButterworthRingOptions optional arguments for vips_mask_butterworth_ring
func DefaultMaskButterworthRingOptions ¶
func DefaultMaskButterworthRingOptions() *MaskButterworthRingOptions
DefaultMaskButterworthRingOptions creates default value for vips_mask_butterworth_ring optional arguments
type MaskFractalOptions ¶
type MaskFractalOptions struct { // Uchar Output an unsigned char image Uchar bool // Nodc Remove DC component Nodc bool // Reject Invert the sense of the filter Reject bool // Optical Rotate quadrants to optical space Optical bool }
MaskFractalOptions optional arguments for vips_mask_fractal
func DefaultMaskFractalOptions ¶
func DefaultMaskFractalOptions() *MaskFractalOptions
DefaultMaskFractalOptions creates default value for vips_mask_fractal optional arguments
type MaskGaussianBandOptions ¶
type MaskGaussianBandOptions struct { // Uchar Output an unsigned char image Uchar bool // Nodc Remove DC component Nodc bool // Reject Invert the sense of the filter Reject bool // Optical Rotate quadrants to optical space Optical bool }
MaskGaussianBandOptions optional arguments for vips_mask_gaussian_band
func DefaultMaskGaussianBandOptions ¶
func DefaultMaskGaussianBandOptions() *MaskGaussianBandOptions
DefaultMaskGaussianBandOptions creates default value for vips_mask_gaussian_band optional arguments
type MaskGaussianOptions ¶
type MaskGaussianOptions struct { // Uchar Output an unsigned char image Uchar bool // Nodc Remove DC component Nodc bool // Reject Invert the sense of the filter Reject bool // Optical Rotate quadrants to optical space Optical bool }
MaskGaussianOptions optional arguments for vips_mask_gaussian
func DefaultMaskGaussianOptions ¶
func DefaultMaskGaussianOptions() *MaskGaussianOptions
DefaultMaskGaussianOptions creates default value for vips_mask_gaussian optional arguments
type MaskGaussianRingOptions ¶
type MaskGaussianRingOptions struct { // Uchar Output an unsigned char image Uchar bool // Nodc Remove DC component Nodc bool // Reject Invert the sense of the filter Reject bool // Optical Rotate quadrants to optical space Optical bool }
MaskGaussianRingOptions optional arguments for vips_mask_gaussian_ring
func DefaultMaskGaussianRingOptions ¶
func DefaultMaskGaussianRingOptions() *MaskGaussianRingOptions
DefaultMaskGaussianRingOptions creates default value for vips_mask_gaussian_ring optional arguments
type MaskIdealBandOptions ¶
type MaskIdealBandOptions struct { // Uchar Output an unsigned char image Uchar bool // Nodc Remove DC component Nodc bool // Reject Invert the sense of the filter Reject bool // Optical Rotate quadrants to optical space Optical bool }
MaskIdealBandOptions optional arguments for vips_mask_ideal_band
func DefaultMaskIdealBandOptions ¶
func DefaultMaskIdealBandOptions() *MaskIdealBandOptions
DefaultMaskIdealBandOptions creates default value for vips_mask_ideal_band optional arguments
type MaskIdealOptions ¶
type MaskIdealOptions struct { // Uchar Output an unsigned char image Uchar bool // Nodc Remove DC component Nodc bool // Reject Invert the sense of the filter Reject bool // Optical Rotate quadrants to optical space Optical bool }
MaskIdealOptions optional arguments for vips_mask_ideal
func DefaultMaskIdealOptions ¶
func DefaultMaskIdealOptions() *MaskIdealOptions
DefaultMaskIdealOptions creates default value for vips_mask_ideal optional arguments
type MaskIdealRingOptions ¶
type MaskIdealRingOptions struct { // Uchar Output an unsigned char image Uchar bool // Nodc Remove DC component Nodc bool // Reject Invert the sense of the filter Reject bool // Optical Rotate quadrants to optical space Optical bool }
MaskIdealRingOptions optional arguments for vips_mask_ideal_ring
func DefaultMaskIdealRingOptions ¶
func DefaultMaskIdealRingOptions() *MaskIdealRingOptions
DefaultMaskIdealRingOptions creates default value for vips_mask_ideal_ring optional arguments
type MatchOptions ¶
type MatchOptions struct { // Hwindow Half window size Hwindow int // Harea Half area size Harea int // Search Search to improve tie-points Search bool // Interpolate Interpolate pixels with this Interpolate *Interpolate }
MatchOptions optional arguments for vips_match
func DefaultMatchOptions ¶
func DefaultMatchOptions() *MatchOptions
DefaultMatchOptions creates default value for vips_match optional arguments
type MatloadOptions ¶ added in v0.0.5
type MatloadOptions struct { // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
MatloadOptions optional arguments for vips_matload
func DefaultMatloadOptions ¶ added in v0.0.5
func DefaultMatloadOptions() *MatloadOptions
DefaultMatloadOptions creates default value for vips_matload optional arguments
type MatrixloadOptions ¶
type MatrixloadOptions struct { // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
MatrixloadOptions optional arguments for vips_matrixload
func DefaultMatrixloadOptions ¶
func DefaultMatrixloadOptions() *MatrixloadOptions
DefaultMatrixloadOptions creates default value for vips_matrixload optional arguments
type MatrixloadSourceOptions ¶
type MatrixloadSourceOptions struct { // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
MatrixloadSourceOptions optional arguments for vips_matrixload_source
func DefaultMatrixloadSourceOptions ¶
func DefaultMatrixloadSourceOptions() *MatrixloadSourceOptions
DefaultMatrixloadSourceOptions creates default value for vips_matrixload_source optional arguments
type MatrixprintOptions ¶
type MatrixprintOptions struct { // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
MatrixprintOptions optional arguments for vips_matrixprint
func DefaultMatrixprintOptions ¶
func DefaultMatrixprintOptions() *MatrixprintOptions
DefaultMatrixprintOptions creates default value for vips_matrixprint optional arguments
type MatrixsaveOptions ¶
type MatrixsaveOptions struct { // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
MatrixsaveOptions optional arguments for vips_matrixsave
func DefaultMatrixsaveOptions ¶
func DefaultMatrixsaveOptions() *MatrixsaveOptions
DefaultMatrixsaveOptions creates default value for vips_matrixsave optional arguments
type MatrixsaveTargetOptions ¶ added in v1.1.0
type MatrixsaveTargetOptions struct { // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
MatrixsaveTargetOptions optional arguments for vips_matrixsave_target
func DefaultMatrixsaveTargetOptions ¶ added in v1.1.0
func DefaultMatrixsaveTargetOptions() *MatrixsaveTargetOptions
DefaultMatrixsaveTargetOptions creates default value for vips_matrixsave_target optional arguments
type MaxOptions ¶
type MaxOptions struct { // Size Number of maximum values to find Size int }
MaxOptions optional arguments for vips_max
func DefaultMaxOptions ¶
func DefaultMaxOptions() *MaxOptions
DefaultMaxOptions creates default value for vips_max optional arguments
type MeasureOptions ¶
type MeasureOptions struct { // Left Left edge of extract area Left int // Top Top edge of extract area Top int // Width Width of extract area Width int // Height Height of extract area Height int }
MeasureOptions optional arguments for vips_measure
func DefaultMeasureOptions ¶
func DefaultMeasureOptions() *MeasureOptions
DefaultMeasureOptions creates default value for vips_measure optional arguments
type MemoryStats ¶
MemoryStats is a data structure that houses various memory statistics from ReadVipsMemStats()
type MergeOptions ¶
type MergeOptions struct { // Mblend Maximum blend size Mblend int }
MergeOptions optional arguments for vips_merge
func DefaultMergeOptions ¶
func DefaultMergeOptions() *MergeOptions
DefaultMergeOptions creates default value for vips_merge optional arguments
type MinOptions ¶
type MinOptions struct { // Size Number of minimum values to find Size int }
MinOptions optional arguments for vips_min
func DefaultMinOptions ¶
func DefaultMinOptions() *MinOptions
DefaultMinOptions creates default value for vips_min optional arguments
type Mosaic1Options ¶
type Mosaic1Options struct { // Hwindow Half window size Hwindow int // Harea Half area size Harea int // Search Search to improve tie-points Search bool // Interpolate Interpolate pixels with this Interpolate *Interpolate // Mblend Maximum blend size Mblend int }
Mosaic1Options optional arguments for vips_mosaic1
func DefaultMosaic1Options ¶
func DefaultMosaic1Options() *Mosaic1Options
DefaultMosaic1Options creates default value for vips_mosaic1 optional arguments
type MosaicOptions ¶
type MosaicOptions struct { // Hwindow Half window size Hwindow int // Harea Half area size Harea int // Mblend Maximum blend size Mblend int // Bandno Band to search for features on Bandno int }
MosaicOptions optional arguments for vips_mosaic
func DefaultMosaicOptions ¶
func DefaultMosaicOptions() *MosaicOptions
DefaultMosaicOptions creates default value for vips_mosaic optional arguments
type MsbOptions ¶
type MsbOptions struct { // Band Band to msb Band int }
MsbOptions optional arguments for vips_msb
func DefaultMsbOptions ¶
func DefaultMsbOptions() *MsbOptions
DefaultMsbOptions creates default value for vips_msb optional arguments
type NiftiloadOptions ¶ added in v0.2.0
type NiftiloadOptions struct { // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
NiftiloadOptions optional arguments for vips_niftiload
func DefaultNiftiloadOptions ¶ added in v0.2.0
func DefaultNiftiloadOptions() *NiftiloadOptions
DefaultNiftiloadOptions creates default value for vips_niftiload optional arguments
type NiftiloadSourceOptions ¶ added in v0.2.0
type NiftiloadSourceOptions struct { // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
NiftiloadSourceOptions optional arguments for vips_niftiload_source
func DefaultNiftiloadSourceOptions ¶ added in v0.2.0
func DefaultNiftiloadSourceOptions() *NiftiloadSourceOptions
DefaultNiftiloadSourceOptions creates default value for vips_niftiload_source optional arguments
type NiftisaveOptions ¶ added in v0.2.0
type NiftisaveOptions struct { // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
NiftisaveOptions optional arguments for vips_niftisave
func DefaultNiftisaveOptions ¶ added in v0.2.0
func DefaultNiftisaveOptions() *NiftisaveOptions
DefaultNiftisaveOptions creates default value for vips_niftisave optional arguments
type OpenexrloadOptions ¶
type OpenexrloadOptions struct { // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
OpenexrloadOptions optional arguments for vips_openexrload
func DefaultOpenexrloadOptions ¶
func DefaultOpenexrloadOptions() *OpenexrloadOptions
DefaultOpenexrloadOptions creates default value for vips_openexrload optional arguments
type OpenslideloadOptions ¶
type OpenslideloadOptions struct { // Level Load this level from the file Level int // Autocrop Crop to image bounds Autocrop bool // Associated Load this associated image Associated string // AttachAssociated Attach all associated images AttachAssociated bool // Rgb Output RGB (not RGBA) Rgb bool // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
OpenslideloadOptions optional arguments for vips_openslideload
func DefaultOpenslideloadOptions ¶
func DefaultOpenslideloadOptions() *OpenslideloadOptions
DefaultOpenslideloadOptions creates default value for vips_openslideload optional arguments
type OpenslideloadSourceOptions ¶
type OpenslideloadSourceOptions struct { // Level Load this level from the file Level int // Autocrop Crop to image bounds Autocrop bool // Associated Load this associated image Associated string // AttachAssociated Attach all associated images AttachAssociated bool // Rgb Output RGB (not RGBA) Rgb bool // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
OpenslideloadSourceOptions optional arguments for vips_openslideload_source
func DefaultOpenslideloadSourceOptions ¶
func DefaultOpenslideloadSourceOptions() *OpenslideloadSourceOptions
DefaultOpenslideloadSourceOptions creates default value for vips_openslideload_source optional arguments
type OperationBoolean ¶
type OperationBoolean int
OperationBoolean represents VipsOperationBoolean type
const ( OperationBooleanAnd OperationBoolean = C.VIPS_OPERATION_BOOLEAN_AND OperationBooleanOr OperationBoolean = C.VIPS_OPERATION_BOOLEAN_OR OperationBooleanEor OperationBoolean = C.VIPS_OPERATION_BOOLEAN_EOR OperationBooleanLshift OperationBoolean = C.VIPS_OPERATION_BOOLEAN_LSHIFT OperationBooleanRshift OperationBoolean = C.VIPS_OPERATION_BOOLEAN_RSHIFT OperationBooleanLast OperationBoolean = C.VIPS_OPERATION_BOOLEAN_LAST )
OperationBoolean enum
type OperationComplex ¶
type OperationComplex int
OperationComplex represents VipsOperationComplex type
const ( OperationComplexPolar OperationComplex = C.VIPS_OPERATION_COMPLEX_POLAR OperationComplexRect OperationComplex = C.VIPS_OPERATION_COMPLEX_RECT OperationComplexConj OperationComplex = C.VIPS_OPERATION_COMPLEX_CONJ OperationComplexLast OperationComplex = C.VIPS_OPERATION_COMPLEX_LAST )
OperationComplex enum
type OperationComplex2 ¶
type OperationComplex2 int
OperationComplex2 represents VipsOperationComplex2 type
const ( OperationComplex2CrossPhase OperationComplex2 = C.VIPS_OPERATION_COMPLEX2_CROSS_PHASE OperationComplex2Last OperationComplex2 = C.VIPS_OPERATION_COMPLEX2_LAST )
OperationComplex2 enum
type OperationComplexget ¶
type OperationComplexget int
OperationComplexget represents VipsOperationComplexget type
const ( OperationComplexgetReal OperationComplexget = C.VIPS_OPERATION_COMPLEXGET_REAL OperationComplexgetImag OperationComplexget = C.VIPS_OPERATION_COMPLEXGET_IMAG OperationComplexgetLast OperationComplexget = C.VIPS_OPERATION_COMPLEXGET_LAST )
OperationComplexget enum
type OperationMath ¶
type OperationMath int
OperationMath represents VipsOperationMath type
const ( OperationMathSin OperationMath = C.VIPS_OPERATION_MATH_SIN OperationMathCos OperationMath = C.VIPS_OPERATION_MATH_COS OperationMathTan OperationMath = C.VIPS_OPERATION_MATH_TAN OperationMathAsin OperationMath = C.VIPS_OPERATION_MATH_ASIN OperationMathAcos OperationMath = C.VIPS_OPERATION_MATH_ACOS OperationMathAtan OperationMath = C.VIPS_OPERATION_MATH_ATAN OperationMathLog OperationMath = C.VIPS_OPERATION_MATH_LOG OperationMathLog10 OperationMath = C.VIPS_OPERATION_MATH_LOG10 OperationMathExp OperationMath = C.VIPS_OPERATION_MATH_EXP OperationMathExp10 OperationMath = C.VIPS_OPERATION_MATH_EXP10 OperationMathSinh OperationMath = C.VIPS_OPERATION_MATH_SINH OperationMathCosh OperationMath = C.VIPS_OPERATION_MATH_COSH OperationMathTanh OperationMath = C.VIPS_OPERATION_MATH_TANH OperationMathAsinh OperationMath = C.VIPS_OPERATION_MATH_ASINH OperationMathAcosh OperationMath = C.VIPS_OPERATION_MATH_ACOSH OperationMathAtanh OperationMath = C.VIPS_OPERATION_MATH_ATANH OperationMathLast OperationMath = C.VIPS_OPERATION_MATH_LAST )
OperationMath enum
type OperationMath2 ¶
type OperationMath2 int
OperationMath2 represents VipsOperationMath2 type
const ( OperationMath2Pow OperationMath2 = C.VIPS_OPERATION_MATH2_POW OperationMath2Wop OperationMath2 = C.VIPS_OPERATION_MATH2_WOP OperationMath2Atan2 OperationMath2 = C.VIPS_OPERATION_MATH2_ATAN2 OperationMath2Last OperationMath2 = C.VIPS_OPERATION_MATH2_LAST )
OperationMath2 enum
type OperationMorphology ¶
type OperationMorphology int
OperationMorphology represents VipsOperationMorphology type
const ( OperationMorphologyErode OperationMorphology = C.VIPS_OPERATION_MORPHOLOGY_ERODE OperationMorphologyDilate OperationMorphology = C.VIPS_OPERATION_MORPHOLOGY_DILATE OperationMorphologyLast OperationMorphology = C.VIPS_OPERATION_MORPHOLOGY_LAST )
OperationMorphology enum
type OperationRelational ¶
type OperationRelational int
OperationRelational represents VipsOperationRelational type
const ( OperationRelationalEqual OperationRelational = C.VIPS_OPERATION_RELATIONAL_EQUAL OperationRelationalNoteq OperationRelational = C.VIPS_OPERATION_RELATIONAL_NOTEQ OperationRelationalLess OperationRelational = C.VIPS_OPERATION_RELATIONAL_LESS OperationRelationalLesseq OperationRelational = C.VIPS_OPERATION_RELATIONAL_LESSEQ OperationRelationalMore OperationRelational = C.VIPS_OPERATION_RELATIONAL_MORE OperationRelationalMoreeq OperationRelational = C.VIPS_OPERATION_RELATIONAL_MOREEQ OperationRelationalLast OperationRelational = C.VIPS_OPERATION_RELATIONAL_LAST )
OperationRelational enum
type OperationRound ¶
type OperationRound int
OperationRound represents VipsOperationRound type
const ( OperationRoundRint OperationRound = C.VIPS_OPERATION_ROUND_RINT OperationRoundCeil OperationRound = C.VIPS_OPERATION_ROUND_CEIL OperationRoundFloor OperationRound = C.VIPS_OPERATION_ROUND_FLOOR OperationRoundLast OperationRound = C.VIPS_OPERATION_ROUND_LAST )
OperationRound enum
type PCS ¶
type PCS int
PCS represents VipsPCS type
const ( PcsLab PCS = C.VIPS_PCS_LAB PcsXyz PCS = C.VIPS_PCS_XYZ PcsLast PCS = C.VIPS_PCS_LAST )
PCS enum
type PdfloadBufferOptions ¶
type PdfloadBufferOptions struct { // Page First page to load Page int // N Number of pages to load, -1 for all N int // Dpi DPI to render at Dpi float64 // Scale Factor to scale by Scale float64 // Background Background colour Background []float64 // Password Password to decrypt with Password string // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
PdfloadBufferOptions optional arguments for vips_pdfload_buffer
func DefaultPdfloadBufferOptions ¶
func DefaultPdfloadBufferOptions() *PdfloadBufferOptions
DefaultPdfloadBufferOptions creates default value for vips_pdfload_buffer optional arguments
type PdfloadOptions ¶
type PdfloadOptions struct { // Page First page to load Page int // N Number of pages to load, -1 for all N int // Dpi DPI to render at Dpi float64 // Scale Factor to scale by Scale float64 // Background Background colour Background []float64 // Password Password to decrypt with Password string // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
PdfloadOptions optional arguments for vips_pdfload
func DefaultPdfloadOptions ¶
func DefaultPdfloadOptions() *PdfloadOptions
DefaultPdfloadOptions creates default value for vips_pdfload optional arguments
type PdfloadSourceOptions ¶
type PdfloadSourceOptions struct { // Page First page to load Page int // N Number of pages to load, -1 for all N int // Dpi DPI to render at Dpi float64 // Scale Factor to scale by Scale float64 // Background Background colour Background []float64 // Password Password to decrypt with Password string // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
PdfloadSourceOptions optional arguments for vips_pdfload_source
func DefaultPdfloadSourceOptions ¶
func DefaultPdfloadSourceOptions() *PdfloadSourceOptions
DefaultPdfloadSourceOptions creates default value for vips_pdfload_source optional arguments
type PerlinOptions ¶
type PerlinOptions struct { // CellSize Size of Perlin cells CellSize int // Uchar Output an unsigned char image Uchar bool // Seed Random number seed Seed int }
PerlinOptions optional arguments for vips_perlin
func DefaultPerlinOptions ¶
func DefaultPerlinOptions() *PerlinOptions
DefaultPerlinOptions creates default value for vips_perlin optional arguments
type PngFilter ¶
type PngFilter int
PngFilter represents VipsForeignPngFilter type
const ( PngFilterNone PngFilter = C.VIPS_FOREIGN_PNG_FILTER_NONE PngFilterSub PngFilter = C.VIPS_FOREIGN_PNG_FILTER_SUB PngFilterUp PngFilter = C.VIPS_FOREIGN_PNG_FILTER_UP PngFilterAvg PngFilter = C.VIPS_FOREIGN_PNG_FILTER_AVG PngFilterPaeth PngFilter = C.VIPS_FOREIGN_PNG_FILTER_PAETH PngFilterAll PngFilter = C.VIPS_FOREIGN_PNG_FILTER_ALL )
PngFilter enum
type PngloadBufferOptions ¶
type PngloadBufferOptions struct { // Unlimited Remove all denial of service limits Unlimited bool // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
PngloadBufferOptions optional arguments for vips_pngload_buffer
func DefaultPngloadBufferOptions ¶
func DefaultPngloadBufferOptions() *PngloadBufferOptions
DefaultPngloadBufferOptions creates default value for vips_pngload_buffer optional arguments
type PngloadOptions ¶
type PngloadOptions struct { // Unlimited Remove all denial of service limits Unlimited bool // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
PngloadOptions optional arguments for vips_pngload
func DefaultPngloadOptions ¶
func DefaultPngloadOptions() *PngloadOptions
DefaultPngloadOptions creates default value for vips_pngload optional arguments
type PngloadSourceOptions ¶
type PngloadSourceOptions struct { // Unlimited Remove all denial of service limits Unlimited bool // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
PngloadSourceOptions optional arguments for vips_pngload_source
func DefaultPngloadSourceOptions ¶
func DefaultPngloadSourceOptions() *PngloadSourceOptions
DefaultPngloadSourceOptions creates default value for vips_pngload_source optional arguments
type PngsaveBufferOptions ¶
type PngsaveBufferOptions struct { // Compression Compression factor Compression int // Interlace Interlace image Interlace bool // Filter libpng row filter flag(s) Filter PngFilter // Palette Quantise to 8bpp palette Palette bool // Q Quantisation quality Q int // Dither Amount of dithering Dither float64 // Bitdepth Write as a 1, 2, 4, 8 or 16 bit image Bitdepth int // Effort Quantisation CPU effort Effort int // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
PngsaveBufferOptions optional arguments for vips_pngsave_buffer
func DefaultPngsaveBufferOptions ¶
func DefaultPngsaveBufferOptions() *PngsaveBufferOptions
DefaultPngsaveBufferOptions creates default value for vips_pngsave_buffer optional arguments
type PngsaveOptions ¶
type PngsaveOptions struct { // Compression Compression factor Compression int // Interlace Interlace image Interlace bool // Filter libpng row filter flag(s) Filter PngFilter // Palette Quantise to 8bpp palette Palette bool // Q Quantisation quality Q int // Dither Amount of dithering Dither float64 // Bitdepth Write as a 1, 2, 4, 8 or 16 bit image Bitdepth int // Effort Quantisation CPU effort Effort int // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
PngsaveOptions optional arguments for vips_pngsave
func DefaultPngsaveOptions ¶
func DefaultPngsaveOptions() *PngsaveOptions
DefaultPngsaveOptions creates default value for vips_pngsave optional arguments
type PngsaveTargetOptions ¶ added in v1.1.0
type PngsaveTargetOptions struct { // Compression Compression factor Compression int // Interlace Interlace image Interlace bool // Filter libpng row filter flag(s) Filter PngFilter // Palette Quantise to 8bpp palette Palette bool // Q Quantisation quality Q int // Dither Amount of dithering Dither float64 // Bitdepth Write as a 1, 2, 4, 8 or 16 bit image Bitdepth int // Effort Quantisation CPU effort Effort int // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
PngsaveTargetOptions optional arguments for vips_pngsave_target
func DefaultPngsaveTargetOptions ¶ added in v1.1.0
func DefaultPngsaveTargetOptions() *PngsaveTargetOptions
DefaultPngsaveTargetOptions creates default value for vips_pngsave_target optional arguments
type PpmFormat ¶
type PpmFormat int
PpmFormat represents VipsForeignPpmFormat type
const ( PpmFormatPbm PpmFormat = C.VIPS_FOREIGN_PPM_FORMAT_PBM PpmFormatPgm PpmFormat = C.VIPS_FOREIGN_PPM_FORMAT_PGM PpmFormatPpm PpmFormat = C.VIPS_FOREIGN_PPM_FORMAT_PPM PpmFormatPfm PpmFormat = C.VIPS_FOREIGN_PPM_FORMAT_PFM PpmFormatPnm PpmFormat = C.VIPS_FOREIGN_PPM_FORMAT_PNM PpmFormatLast PpmFormat = C.VIPS_FOREIGN_PPM_FORMAT_LAST )
PpmFormat enum
type PpmloadBufferOptions ¶ added in v1.1.1
type PpmloadBufferOptions struct { // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
PpmloadBufferOptions optional arguments for vips_ppmload_buffer
func DefaultPpmloadBufferOptions ¶ added in v1.1.1
func DefaultPpmloadBufferOptions() *PpmloadBufferOptions
DefaultPpmloadBufferOptions creates default value for vips_ppmload_buffer optional arguments
type PpmloadOptions ¶
type PpmloadOptions struct { // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
PpmloadOptions optional arguments for vips_ppmload
func DefaultPpmloadOptions ¶
func DefaultPpmloadOptions() *PpmloadOptions
DefaultPpmloadOptions creates default value for vips_ppmload optional arguments
type PpmloadSourceOptions ¶
type PpmloadSourceOptions struct { // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
PpmloadSourceOptions optional arguments for vips_ppmload_source
func DefaultPpmloadSourceOptions ¶
func DefaultPpmloadSourceOptions() *PpmloadSourceOptions
DefaultPpmloadSourceOptions creates default value for vips_ppmload_source optional arguments
type PpmsaveOptions ¶
type PpmsaveOptions struct { // Format Format to save in Format PpmFormat // Ascii Save as ascii Ascii bool // Bitdepth Set to 1 to write as a 1 bit image Bitdepth int // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
PpmsaveOptions optional arguments for vips_ppmsave
func DefaultPpmsaveOptions ¶
func DefaultPpmsaveOptions() *PpmsaveOptions
DefaultPpmsaveOptions creates default value for vips_ppmsave optional arguments
type PpmsaveTargetOptions ¶ added in v1.1.0
type PpmsaveTargetOptions struct { // Format Format to save in Format PpmFormat // Ascii Save as ascii Ascii bool // Bitdepth Set to 1 to write as a 1 bit image Bitdepth int // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
PpmsaveTargetOptions optional arguments for vips_ppmsave_target
func DefaultPpmsaveTargetOptions ¶ added in v1.1.0
func DefaultPpmsaveTargetOptions() *PpmsaveTargetOptions
DefaultPpmsaveTargetOptions creates default value for vips_ppmsave_target optional arguments
type Precision ¶
type Precision int
Precision represents VipsPrecision type
const ( PrecisionInteger Precision = C.VIPS_PRECISION_INTEGER PrecisionFloat Precision = C.VIPS_PRECISION_FLOAT PrecisionApproximate Precision = C.VIPS_PRECISION_APPROXIMATE PrecisionLast Precision = C.VIPS_PRECISION_LAST )
Precision enum
type PremultiplyOptions ¶
type PremultiplyOptions struct { // MaxAlpha Maximum value of alpha channel MaxAlpha float64 }
PremultiplyOptions optional arguments for vips_premultiply
func DefaultPremultiplyOptions ¶
func DefaultPremultiplyOptions() *PremultiplyOptions
DefaultPremultiplyOptions creates default value for vips_premultiply optional arguments
type QuadraticOptions ¶
type QuadraticOptions struct { // Interpolate Interpolate values with this Interpolate *Interpolate }
QuadraticOptions optional arguments for vips_quadratic
func DefaultQuadraticOptions ¶
func DefaultQuadraticOptions() *QuadraticOptions
DefaultQuadraticOptions creates default value for vips_quadratic optional arguments
type RadloadBufferOptions ¶
type RadloadBufferOptions struct { // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
RadloadBufferOptions optional arguments for vips_radload_buffer
func DefaultRadloadBufferOptions ¶
func DefaultRadloadBufferOptions() *RadloadBufferOptions
DefaultRadloadBufferOptions creates default value for vips_radload_buffer optional arguments
type RadloadOptions ¶
type RadloadOptions struct { // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
RadloadOptions optional arguments for vips_radload
func DefaultRadloadOptions ¶
func DefaultRadloadOptions() *RadloadOptions
DefaultRadloadOptions creates default value for vips_radload optional arguments
type RadloadSourceOptions ¶
type RadloadSourceOptions struct { // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
RadloadSourceOptions optional arguments for vips_radload_source
func DefaultRadloadSourceOptions ¶
func DefaultRadloadSourceOptions() *RadloadSourceOptions
DefaultRadloadSourceOptions creates default value for vips_radload_source optional arguments
type RadsaveBufferOptions ¶
type RadsaveBufferOptions struct { // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
RadsaveBufferOptions optional arguments for vips_radsave_buffer
func DefaultRadsaveBufferOptions ¶
func DefaultRadsaveBufferOptions() *RadsaveBufferOptions
DefaultRadsaveBufferOptions creates default value for vips_radsave_buffer optional arguments
type RadsaveOptions ¶
type RadsaveOptions struct { // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
RadsaveOptions optional arguments for vips_radsave
func DefaultRadsaveOptions ¶
func DefaultRadsaveOptions() *RadsaveOptions
DefaultRadsaveOptions creates default value for vips_radsave optional arguments
type RadsaveTargetOptions ¶ added in v1.1.0
type RadsaveTargetOptions struct { // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
RadsaveTargetOptions optional arguments for vips_radsave_target
func DefaultRadsaveTargetOptions ¶ added in v1.1.0
func DefaultRadsaveTargetOptions() *RadsaveTargetOptions
DefaultRadsaveTargetOptions creates default value for vips_radsave_target optional arguments
type RawloadOptions ¶
type RawloadOptions struct { // Offset Offset in bytes from start of file Offset uint64 // Format Pixel format in image Format BandFormat // Interpretation Pixel interpretation Interpretation Interpretation // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
RawloadOptions optional arguments for vips_rawload
func DefaultRawloadOptions ¶
func DefaultRawloadOptions() *RawloadOptions
DefaultRawloadOptions creates default value for vips_rawload optional arguments
type RawsaveBufferOptions ¶
type RawsaveBufferOptions struct { // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
RawsaveBufferOptions optional arguments for vips_rawsave_buffer
func DefaultRawsaveBufferOptions ¶
func DefaultRawsaveBufferOptions() *RawsaveBufferOptions
DefaultRawsaveBufferOptions creates default value for vips_rawsave_buffer optional arguments
type RawsaveOptions ¶
type RawsaveOptions struct { // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
RawsaveOptions optional arguments for vips_rawsave
func DefaultRawsaveOptions ¶
func DefaultRawsaveOptions() *RawsaveOptions
DefaultRawsaveOptions creates default value for vips_rawsave optional arguments
type RawsaveTargetOptions ¶ added in v1.1.0
type RawsaveTargetOptions struct { // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
RawsaveTargetOptions optional arguments for vips_rawsave_target
func DefaultRawsaveTargetOptions ¶ added in v1.1.0
func DefaultRawsaveTargetOptions() *RawsaveTargetOptions
DefaultRawsaveTargetOptions creates default value for vips_rawsave_target optional arguments
type ReduceOptions ¶
type ReduceOptions struct { // Kernel Resampling kernel Kernel Kernel // Gap Reducing gap Gap float64 }
ReduceOptions optional arguments for vips_reduce
func DefaultReduceOptions ¶
func DefaultReduceOptions() *ReduceOptions
DefaultReduceOptions creates default value for vips_reduce optional arguments
type ReducehOptions ¶
type ReducehOptions struct { // Kernel Resampling kernel Kernel Kernel // Gap Reducing gap Gap float64 }
ReducehOptions optional arguments for vips_reduceh
func DefaultReducehOptions ¶
func DefaultReducehOptions() *ReducehOptions
DefaultReducehOptions creates default value for vips_reduceh optional arguments
type ReducevOptions ¶
type ReducevOptions struct { // Kernel Resampling kernel Kernel Kernel // Gap Reducing gap Gap float64 }
ReducevOptions optional arguments for vips_reducev
func DefaultReducevOptions ¶
func DefaultReducevOptions() *ReducevOptions
DefaultReducevOptions creates default value for vips_reducev optional arguments
type RegionShrink ¶
type RegionShrink int
RegionShrink represents VipsRegionShrink type
const ( RegionShrinkMean RegionShrink = C.VIPS_REGION_SHRINK_MEAN RegionShrinkMedian RegionShrink = C.VIPS_REGION_SHRINK_MEDIAN RegionShrinkMode RegionShrink = C.VIPS_REGION_SHRINK_MODE RegionShrinkMax RegionShrink = C.VIPS_REGION_SHRINK_MAX RegionShrinkMin RegionShrink = C.VIPS_REGION_SHRINK_MIN RegionShrinkNearest RegionShrink = C.VIPS_REGION_SHRINK_NEAREST RegionShrinkLast RegionShrink = C.VIPS_REGION_SHRINK_LAST )
RegionShrink enum
type ResizeOptions ¶
type ResizeOptions struct { // Kernel Resampling kernel Kernel Kernel // Gap Reducing gap Gap float64 // Vscale Vertical scale image by this factor Vscale float64 }
ResizeOptions optional arguments for vips_resize
func DefaultResizeOptions ¶
func DefaultResizeOptions() *ResizeOptions
DefaultResizeOptions creates default value for vips_resize optional arguments
type Rot45Options ¶
type Rot45Options struct { // Angle Angle to rotate image Angle Angle45 }
Rot45Options optional arguments for vips_rot45
func DefaultRot45Options ¶
func DefaultRot45Options() *Rot45Options
DefaultRot45Options creates default value for vips_rot45 optional arguments
type RotateOptions ¶
type RotateOptions struct { // Interpolate Interpolate pixels with this Interpolate *Interpolate // Background Background value Background []float64 // Odx Horizontal output displacement Odx float64 // Ody Vertical output displacement Ody float64 // Idx Horizontal input displacement Idx float64 // Idy Vertical input displacement Idy float64 }
RotateOptions optional arguments for vips_rotate
func DefaultRotateOptions ¶
func DefaultRotateOptions() *RotateOptions
DefaultRotateOptions creates default value for vips_rotate optional arguments
type ScRGB2BWOptions ¶
type ScRGB2BWOptions struct { // Depth Output device space depth in bits Depth int }
ScRGB2BWOptions optional arguments for vips_scRGB2BW
func DefaultScRGB2BWOptions ¶
func DefaultScRGB2BWOptions() *ScRGB2BWOptions
DefaultScRGB2BWOptions creates default value for vips_scRGB2BW optional arguments
type ScRGB2sRGBOptions ¶
type ScRGB2sRGBOptions struct { // Depth Output device space depth in bits Depth int }
ScRGB2sRGBOptions optional arguments for vips_scRGB2sRGB
func DefaultScRGB2sRGBOptions ¶
func DefaultScRGB2sRGBOptions() *ScRGB2sRGBOptions
DefaultScRGB2sRGBOptions creates default value for vips_scRGB2sRGB optional arguments
type ScaleOptions ¶
ScaleOptions optional arguments for vips_scale
func DefaultScaleOptions ¶
func DefaultScaleOptions() *ScaleOptions
DefaultScaleOptions creates default value for vips_scale optional arguments
type SdfOptions ¶
type SdfOptions struct { // R Radius R float64 // A Point a A []float64 // B Point b B []float64 // Corners Corner radii Corners []float64 }
SdfOptions optional arguments for vips_sdf
func DefaultSdfOptions ¶
func DefaultSdfOptions() *SdfOptions
DefaultSdfOptions creates default value for vips_sdf optional arguments
type SdfShape ¶
type SdfShape int
SdfShape represents VipsSdfShape type
const ( SdfShapeCircle SdfShape = C.VIPS_SDF_SHAPE_CIRCLE SdfShapeBox SdfShape = C.VIPS_SDF_SHAPE_BOX SdfShapeRoundedBox SdfShape = C.VIPS_SDF_SHAPE_ROUNDED_BOX SdfShapeLine SdfShape = C.VIPS_SDF_SHAPE_LINE SdfShapeLast SdfShape = C.VIPS_SDF_SHAPE_LAST )
SdfShape enum
type SequentialOptions ¶
type SequentialOptions struct { // TileHeight Tile height in pixels TileHeight int }
SequentialOptions optional arguments for vips_sequential
func DefaultSequentialOptions ¶
func DefaultSequentialOptions() *SequentialOptions
DefaultSequentialOptions creates default value for vips_sequential optional arguments
type SharpenOptions ¶
type SharpenOptions struct { // Sigma Sigma of Gaussian Sigma float64 // X1 Flat/jaggy threshold X1 float64 // Y2 Maximum brightening Y2 float64 // Y3 Maximum darkening Y3 float64 // M1 Slope for flat areas M1 float64 // M2 Slope for jaggy areas M2 float64 }
SharpenOptions optional arguments for vips_sharpen
func DefaultSharpenOptions ¶
func DefaultSharpenOptions() *SharpenOptions
DefaultSharpenOptions creates default value for vips_sharpen optional arguments
type ShrinkOptions ¶
type ShrinkOptions struct { // Ceil Round-up output dimensions Ceil bool }
ShrinkOptions optional arguments for vips_shrink
func DefaultShrinkOptions ¶
func DefaultShrinkOptions() *ShrinkOptions
DefaultShrinkOptions creates default value for vips_shrink optional arguments
type ShrinkhOptions ¶
type ShrinkhOptions struct { // Ceil Round-up output dimensions Ceil bool }
ShrinkhOptions optional arguments for vips_shrinkh
func DefaultShrinkhOptions ¶
func DefaultShrinkhOptions() *ShrinkhOptions
DefaultShrinkhOptions creates default value for vips_shrinkh optional arguments
type ShrinkvOptions ¶
type ShrinkvOptions struct { // Ceil Round-up output dimensions Ceil bool }
ShrinkvOptions optional arguments for vips_shrinkv
func DefaultShrinkvOptions ¶
func DefaultShrinkvOptions() *ShrinkvOptions
DefaultShrinkvOptions creates default value for vips_shrinkv optional arguments
type SimilarityOptions ¶
type SimilarityOptions struct { // Scale Scale by this factor Scale float64 // Angle Rotate clockwise by this many degrees Angle float64 // Interpolate Interpolate pixels with this Interpolate *Interpolate // Background Background value Background []float64 // Odx Horizontal output displacement Odx float64 // Ody Vertical output displacement Ody float64 // Idx Horizontal input displacement Idx float64 // Idy Vertical input displacement Idy float64 }
SimilarityOptions optional arguments for vips_similarity
func DefaultSimilarityOptions ¶
func DefaultSimilarityOptions() *SimilarityOptions
DefaultSimilarityOptions creates default value for vips_similarity optional arguments
type SinesOptions ¶
type SinesOptions struct { // Uchar Output an unsigned char image Uchar bool // Hfreq Horizontal spatial frequency Hfreq float64 // Vfreq Vertical spatial frequency Vfreq float64 }
SinesOptions optional arguments for vips_sines
func DefaultSinesOptions ¶
func DefaultSinesOptions() *SinesOptions
DefaultSinesOptions creates default value for vips_sines optional arguments
type Size ¶
type Size int
Size represents VipsSize type
const ( SizeBoth Size = C.VIPS_SIZE_BOTH SizeUp Size = C.VIPS_SIZE_UP SizeDown Size = C.VIPS_SIZE_DOWN SizeForce Size = C.VIPS_SIZE_FORCE SizeLast Size = C.VIPS_SIZE_LAST )
Size enum
type SmartcropOptions ¶
type SmartcropOptions struct { // Interesting How to measure interestingness Interesting Interesting // Premultiplied Input image already has premultiplied alpha Premultiplied bool }
SmartcropOptions optional arguments for vips_smartcrop
func DefaultSmartcropOptions ¶
func DefaultSmartcropOptions() *SmartcropOptions
DefaultSmartcropOptions creates default value for vips_smartcrop optional arguments
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source contains a libvips VipsSourceCustom and manages its lifecycle.
type StdifOptions ¶
type StdifOptions struct { // S0 New deviation S0 float64 // B Weight of new deviation B float64 // M0 New mean M0 float64 // A Weight of new mean A float64 }
StdifOptions optional arguments for vips_stdif
func DefaultStdifOptions ¶
func DefaultStdifOptions() *StdifOptions
DefaultStdifOptions creates default value for vips_stdif optional arguments
type Subsample ¶
type Subsample int
Subsample represents VipsForeignSubsample type
const ( SubsampleAuto Subsample = C.VIPS_FOREIGN_SUBSAMPLE_AUTO SubsampleOn Subsample = C.VIPS_FOREIGN_SUBSAMPLE_ON SubsampleOff Subsample = C.VIPS_FOREIGN_SUBSAMPLE_OFF SubsampleLast Subsample = C.VIPS_FOREIGN_SUBSAMPLE_LAST )
Subsample enum
type SubsampleOptions ¶
type SubsampleOptions struct { // Point Point sample Point bool }
SubsampleOptions optional arguments for vips_subsample
func DefaultSubsampleOptions ¶
func DefaultSubsampleOptions() *SubsampleOptions
DefaultSubsampleOptions creates default value for vips_subsample optional arguments
type SvgloadBufferOptions ¶
type SvgloadBufferOptions struct { // Dpi Render at this DPI Dpi float64 // Scale Scale output by this factor Scale float64 // Unlimited Allow SVG of any size Unlimited bool // Stylesheet Custom CSS Stylesheet string // HighBitdepth Enable scRGB 128-bit output (32-bit per channel) HighBitdepth bool // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
SvgloadBufferOptions optional arguments for vips_svgload_buffer
func DefaultSvgloadBufferOptions ¶
func DefaultSvgloadBufferOptions() *SvgloadBufferOptions
DefaultSvgloadBufferOptions creates default value for vips_svgload_buffer optional arguments
type SvgloadOptions ¶
type SvgloadOptions struct { // Dpi Render at this DPI Dpi float64 // Scale Scale output by this factor Scale float64 // Unlimited Allow SVG of any size Unlimited bool // Stylesheet Custom CSS Stylesheet string // HighBitdepth Enable scRGB 128-bit output (32-bit per channel) HighBitdepth bool // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
SvgloadOptions optional arguments for vips_svgload
func DefaultSvgloadOptions ¶
func DefaultSvgloadOptions() *SvgloadOptions
DefaultSvgloadOptions creates default value for vips_svgload optional arguments
type SvgloadSourceOptions ¶
type SvgloadSourceOptions struct { // Dpi Render at this DPI Dpi float64 // Scale Scale output by this factor Scale float64 // Unlimited Allow SVG of any size Unlimited bool // Stylesheet Custom CSS Stylesheet string // HighBitdepth Enable scRGB 128-bit output (32-bit per channel) HighBitdepth bool // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
SvgloadSourceOptions optional arguments for vips_svgload_source
func DefaultSvgloadSourceOptions ¶
func DefaultSvgloadSourceOptions() *SvgloadSourceOptions
DefaultSvgloadSourceOptions creates default value for vips_svgload_source optional arguments
type SystemOptions ¶
type SystemOptions struct { // In Array of input images In []*Image // OutFormat Format for output filename OutFormat string // InFormat Format for input filename InFormat string }
SystemOptions optional arguments for vips_system
func DefaultSystemOptions ¶
func DefaultSystemOptions() *SystemOptions
DefaultSystemOptions creates default value for vips_system optional arguments
type Target ¶ added in v1.1.0
type Target struct {
// contains filtered or unexported fields
}
Target contains a libvips VipsTargetCustom and manages its lifecycle.
func NewTarget ¶ added in v1.1.0
func NewTarget(writer io.WriteCloser) *Target
NewTarget creates Target from writer
type TextOptions ¶
type TextOptions struct { // Font Font to render with Font string // Width Maximum image width in pixels Width int // Height Maximum image height in pixels Height int // Align Align on the low, centre or high edge Align Align // Justify Justify lines Justify bool // Dpi DPI to render at Dpi int // Spacing Line spacing Spacing int // Fontfile Load this font file Fontfile string // Rgba Enable RGBA output Rgba bool // Wrap Wrap lines on word or character boundaries Wrap TextWrap }
TextOptions optional arguments for vips_text
func DefaultTextOptions ¶
func DefaultTextOptions() *TextOptions
DefaultTextOptions creates default value for vips_text optional arguments
type TextWrap ¶
type TextWrap int
TextWrap represents VipsTextWrap type
const ( TextWrapWord TextWrap = C.VIPS_TEXT_WRAP_WORD TextWrapChar TextWrap = C.VIPS_TEXT_WRAP_CHAR TextWrapWordChar TextWrap = C.VIPS_TEXT_WRAP_WORD_CHAR TextWrapNone TextWrap = C.VIPS_TEXT_WRAP_NONE TextWrapLast TextWrap = C.VIPS_TEXT_WRAP_LAST )
TextWrap enum
type ThumbnailBufferOptions ¶
type ThumbnailBufferOptions struct { // OptionString Options that are passed on to the underlying loader OptionString string // Height Size to this height Height int // Size Only upsize, only downsize, or both Size Size // NoRotate Don't use orientation tags to rotate image upright NoRotate bool // Crop Reduce to fill target rectangle, then crop Crop Interesting // Linear Reduce in linear light Linear bool // InputProfile Fallback input profile InputProfile string // OutputProfile Fallback output profile OutputProfile string // Intent Rendering intent Intent Intent // FailOn Error level to fail on FailOn FailOn }
ThumbnailBufferOptions optional arguments for vips_thumbnail_buffer
func DefaultThumbnailBufferOptions ¶
func DefaultThumbnailBufferOptions() *ThumbnailBufferOptions
DefaultThumbnailBufferOptions creates default value for vips_thumbnail_buffer optional arguments
type ThumbnailImageOptions ¶
type ThumbnailImageOptions struct { // Height Size to this height Height int // Size Only upsize, only downsize, or both Size Size // NoRotate Don't use orientation tags to rotate image upright NoRotate bool // Crop Reduce to fill target rectangle, then crop Crop Interesting // Linear Reduce in linear light Linear bool // InputProfile Fallback input profile InputProfile string // OutputProfile Fallback output profile OutputProfile string // Intent Rendering intent Intent Intent // FailOn Error level to fail on FailOn FailOn }
ThumbnailImageOptions optional arguments for vips_thumbnail_image
func DefaultThumbnailImageOptions ¶
func DefaultThumbnailImageOptions() *ThumbnailImageOptions
DefaultThumbnailImageOptions creates default value for vips_thumbnail_image optional arguments
type ThumbnailOptions ¶
type ThumbnailOptions struct { // Height Size to this height Height int // Size Only upsize, only downsize, or both Size Size // NoRotate Don't use orientation tags to rotate image upright NoRotate bool // Crop Reduce to fill target rectangle, then crop Crop Interesting // Linear Reduce in linear light Linear bool // InputProfile Fallback input profile InputProfile string // OutputProfile Fallback output profile OutputProfile string // Intent Rendering intent Intent Intent // FailOn Error level to fail on FailOn FailOn }
ThumbnailOptions optional arguments for vips_thumbnail
func DefaultThumbnailOptions ¶
func DefaultThumbnailOptions() *ThumbnailOptions
DefaultThumbnailOptions creates default value for vips_thumbnail optional arguments
type ThumbnailSourceOptions ¶
type ThumbnailSourceOptions struct { // OptionString Options that are passed on to the underlying loader OptionString string // Height Size to this height Height int // Size Only upsize, only downsize, or both Size Size // NoRotate Don't use orientation tags to rotate image upright NoRotate bool // Crop Reduce to fill target rectangle, then crop Crop Interesting // Linear Reduce in linear light Linear bool // InputProfile Fallback input profile InputProfile string // OutputProfile Fallback output profile OutputProfile string // Intent Rendering intent Intent Intent // FailOn Error level to fail on FailOn FailOn }
ThumbnailSourceOptions optional arguments for vips_thumbnail_source
func DefaultThumbnailSourceOptions ¶
func DefaultThumbnailSourceOptions() *ThumbnailSourceOptions
DefaultThumbnailSourceOptions creates default value for vips_thumbnail_source optional arguments
type TiffCompression ¶
type TiffCompression int
TiffCompression represents VipsForeignTiffCompression type
const ( TiffCompressionNone TiffCompression = C.VIPS_FOREIGN_TIFF_COMPRESSION_NONE TiffCompressionJpeg TiffCompression = C.VIPS_FOREIGN_TIFF_COMPRESSION_JPEG TiffCompressionDeflate TiffCompression = C.VIPS_FOREIGN_TIFF_COMPRESSION_DEFLATE TiffCompressionPackbits TiffCompression = C.VIPS_FOREIGN_TIFF_COMPRESSION_PACKBITS TiffCompressionCcittfax4 TiffCompression = C.VIPS_FOREIGN_TIFF_COMPRESSION_CCITTFAX4 TiffCompressionLzw TiffCompression = C.VIPS_FOREIGN_TIFF_COMPRESSION_LZW TiffCompressionWebp TiffCompression = C.VIPS_FOREIGN_TIFF_COMPRESSION_WEBP TiffCompressionZstd TiffCompression = C.VIPS_FOREIGN_TIFF_COMPRESSION_ZSTD TiffCompressionJp2k TiffCompression = C.VIPS_FOREIGN_TIFF_COMPRESSION_JP2K TiffCompressionLast TiffCompression = C.VIPS_FOREIGN_TIFF_COMPRESSION_LAST )
TiffCompression enum
type TiffPredictor ¶
type TiffPredictor int
TiffPredictor represents VipsForeignTiffPredictor type
const ( TiffPredictorNone TiffPredictor = C.VIPS_FOREIGN_TIFF_PREDICTOR_NONE TiffPredictorHorizontal TiffPredictor = C.VIPS_FOREIGN_TIFF_PREDICTOR_HORIZONTAL TiffPredictorFloat TiffPredictor = C.VIPS_FOREIGN_TIFF_PREDICTOR_FLOAT TiffPredictorLast TiffPredictor = C.VIPS_FOREIGN_TIFF_PREDICTOR_LAST )
TiffPredictor enum
type TiffResunit ¶
type TiffResunit int
TiffResunit represents VipsForeignTiffResunit type
const ( TiffResunitCm TiffResunit = C.VIPS_FOREIGN_TIFF_RESUNIT_CM TiffResunitInch TiffResunit = C.VIPS_FOREIGN_TIFF_RESUNIT_INCH TiffResunitLast TiffResunit = C.VIPS_FOREIGN_TIFF_RESUNIT_LAST )
TiffResunit enum
type TiffloadBufferOptions ¶
type TiffloadBufferOptions struct { // Page First page to load Page int // N Number of pages to load, -1 for all N int // Autorotate Rotate image using orientation tag Autorotate bool // Subifd Subifd index Subifd int // Unlimited Remove all denial of service limits Unlimited bool // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
TiffloadBufferOptions optional arguments for vips_tiffload_buffer
func DefaultTiffloadBufferOptions ¶
func DefaultTiffloadBufferOptions() *TiffloadBufferOptions
DefaultTiffloadBufferOptions creates default value for vips_tiffload_buffer optional arguments
type TiffloadOptions ¶
type TiffloadOptions struct { // Page First page to load Page int // N Number of pages to load, -1 for all N int // Autorotate Rotate image using orientation tag Autorotate bool // Subifd Subifd index Subifd int // Unlimited Remove all denial of service limits Unlimited bool // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
TiffloadOptions optional arguments for vips_tiffload
func DefaultTiffloadOptions ¶
func DefaultTiffloadOptions() *TiffloadOptions
DefaultTiffloadOptions creates default value for vips_tiffload optional arguments
type TiffloadSourceOptions ¶
type TiffloadSourceOptions struct { // Page First page to load Page int // N Number of pages to load, -1 for all N int // Autorotate Rotate image using orientation tag Autorotate bool // Subifd Subifd index Subifd int // Unlimited Remove all denial of service limits Unlimited bool // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
TiffloadSourceOptions optional arguments for vips_tiffload_source
func DefaultTiffloadSourceOptions ¶
func DefaultTiffloadSourceOptions() *TiffloadSourceOptions
DefaultTiffloadSourceOptions creates default value for vips_tiffload_source optional arguments
type TiffsaveBufferOptions ¶
type TiffsaveBufferOptions struct { // Compression Compression for this file Compression TiffCompression // Q Q factor Q int // Predictor Compression prediction Predictor TiffPredictor // Tile Write a tiled tiff Tile bool // TileWidth Tile width in pixels TileWidth int // TileHeight Tile height in pixels TileHeight int // Pyramid Write a pyramidal tiff Pyramid bool // Miniswhite Use 0 for white in 1-bit images Miniswhite bool // Bitdepth Write as a 1, 2, 4 or 8 bit image Bitdepth int // Resunit Resolution unit Resunit TiffResunit // Xres Horizontal resolution in pixels/mm Xres float64 // Yres Vertical resolution in pixels/mm Yres float64 // Bigtiff Write a bigtiff image Bigtiff bool // Properties Write a properties document to IMAGEDESCRIPTION Properties bool // RegionShrink Method to shrink regions RegionShrink RegionShrink // Level Deflate (1-9, default 6) or ZSTD (1-22, default 9) compression level Level int // Lossless Enable WEBP lossless mode Lossless bool // Depth Pyramid depth Depth DzDepth // Subifd Save pyr layers as sub-IFDs Subifd bool // Premultiply Save with premultiplied alpha Premultiply bool // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
TiffsaveBufferOptions optional arguments for vips_tiffsave_buffer
func DefaultTiffsaveBufferOptions ¶
func DefaultTiffsaveBufferOptions() *TiffsaveBufferOptions
DefaultTiffsaveBufferOptions creates default value for vips_tiffsave_buffer optional arguments
type TiffsaveOptions ¶
type TiffsaveOptions struct { // Compression Compression for this file Compression TiffCompression // Q Q factor Q int // Predictor Compression prediction Predictor TiffPredictor // Tile Write a tiled tiff Tile bool // TileWidth Tile width in pixels TileWidth int // TileHeight Tile height in pixels TileHeight int // Pyramid Write a pyramidal tiff Pyramid bool // Miniswhite Use 0 for white in 1-bit images Miniswhite bool // Bitdepth Write as a 1, 2, 4 or 8 bit image Bitdepth int // Resunit Resolution unit Resunit TiffResunit // Xres Horizontal resolution in pixels/mm Xres float64 // Yres Vertical resolution in pixels/mm Yres float64 // Bigtiff Write a bigtiff image Bigtiff bool // Properties Write a properties document to IMAGEDESCRIPTION Properties bool // RegionShrink Method to shrink regions RegionShrink RegionShrink // Level Deflate (1-9, default 6) or ZSTD (1-22, default 9) compression level Level int // Lossless Enable WEBP lossless mode Lossless bool // Depth Pyramid depth Depth DzDepth // Subifd Save pyr layers as sub-IFDs Subifd bool // Premultiply Save with premultiplied alpha Premultiply bool // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
TiffsaveOptions optional arguments for vips_tiffsave
func DefaultTiffsaveOptions ¶
func DefaultTiffsaveOptions() *TiffsaveOptions
DefaultTiffsaveOptions creates default value for vips_tiffsave optional arguments
type TiffsaveTargetOptions ¶ added in v1.1.0
type TiffsaveTargetOptions struct { // Compression Compression for this file Compression TiffCompression // Q Q factor Q int // Predictor Compression prediction Predictor TiffPredictor // Tile Write a tiled tiff Tile bool // TileWidth Tile width in pixels TileWidth int // TileHeight Tile height in pixels TileHeight int // Pyramid Write a pyramidal tiff Pyramid bool // Miniswhite Use 0 for white in 1-bit images Miniswhite bool // Bitdepth Write as a 1, 2, 4 or 8 bit image Bitdepth int // Resunit Resolution unit Resunit TiffResunit // Xres Horizontal resolution in pixels/mm Xres float64 // Yres Vertical resolution in pixels/mm Yres float64 // Bigtiff Write a bigtiff image Bigtiff bool // Properties Write a properties document to IMAGEDESCRIPTION Properties bool // RegionShrink Method to shrink regions RegionShrink RegionShrink // Level Deflate (1-9, default 6) or ZSTD (1-22, default 9) compression level Level int // Lossless Enable WEBP lossless mode Lossless bool // Depth Pyramid depth Depth DzDepth // Subifd Save pyr layers as sub-IFDs Subifd bool // Premultiply Save with premultiplied alpha Premultiply bool // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
TiffsaveTargetOptions optional arguments for vips_tiffsave_target
func DefaultTiffsaveTargetOptions ¶ added in v1.1.0
func DefaultTiffsaveTargetOptions() *TiffsaveTargetOptions
DefaultTiffsaveTargetOptions creates default value for vips_tiffsave_target optional arguments
type TilecacheOptions ¶
type TilecacheOptions struct { // TileWidth Tile width in pixels TileWidth int // TileHeight Tile height in pixels TileHeight int // MaxTiles Maximum number of tiles to cache MaxTiles int // Access Expected access pattern Access Access // Threaded Allow threaded access Threaded bool // Persistent Keep cache between evaluations Persistent bool }
TilecacheOptions optional arguments for vips_tilecache
func DefaultTilecacheOptions ¶
func DefaultTilecacheOptions() *TilecacheOptions
DefaultTilecacheOptions creates default value for vips_tilecache optional arguments
type TonelutOptions ¶
type TonelutOptions struct { // InMax Size of LUT to build InMax int // OutMax Maximum value in output LUT OutMax int // Lb Lowest value in output Lb float64 // Lw Highest value in output Lw float64 // Ps Position of shadow Ps float64 // Pm Position of mid-tones Pm float64 // Ph Position of highlights Ph float64 // S Adjust shadows by this much S float64 // M Adjust mid-tones by this much M float64 // H Adjust highlights by this much H float64 }
TonelutOptions optional arguments for vips_tonelut
func DefaultTonelutOptions ¶
func DefaultTonelutOptions() *TonelutOptions
DefaultTonelutOptions creates default value for vips_tonelut optional arguments
type Transpose3dOptions ¶
type Transpose3dOptions struct { // PageHeight Height of each input page PageHeight int }
Transpose3dOptions optional arguments for vips_transpose3d
func DefaultTranspose3dOptions ¶
func DefaultTranspose3dOptions() *Transpose3dOptions
DefaultTranspose3dOptions creates default value for vips_transpose3d optional arguments
type UnpremultiplyOptions ¶
type UnpremultiplyOptions struct { // MaxAlpha Maximum value of alpha channel MaxAlpha float64 // AlphaBand Unpremultiply with this alpha AlphaBand int }
UnpremultiplyOptions optional arguments for vips_unpremultiply
func DefaultUnpremultiplyOptions ¶
func DefaultUnpremultiplyOptions() *UnpremultiplyOptions
DefaultUnpremultiplyOptions creates default value for vips_unpremultiply optional arguments
type VipsloadOptions ¶
type VipsloadOptions struct { // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
VipsloadOptions optional arguments for vips_vipsload
func DefaultVipsloadOptions ¶
func DefaultVipsloadOptions() *VipsloadOptions
DefaultVipsloadOptions creates default value for vips_vipsload optional arguments
type VipsloadSourceOptions ¶
type VipsloadSourceOptions struct { // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
VipsloadSourceOptions optional arguments for vips_vipsload_source
func DefaultVipsloadSourceOptions ¶
func DefaultVipsloadSourceOptions() *VipsloadSourceOptions
DefaultVipsloadSourceOptions creates default value for vips_vipsload_source optional arguments
type VipssaveOptions ¶
type VipssaveOptions struct { // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
VipssaveOptions optional arguments for vips_vipssave
func DefaultVipssaveOptions ¶
func DefaultVipssaveOptions() *VipssaveOptions
DefaultVipssaveOptions creates default value for vips_vipssave optional arguments
type VipssaveTargetOptions ¶ added in v1.1.0
type VipssaveTargetOptions struct { // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
VipssaveTargetOptions optional arguments for vips_vipssave_target
func DefaultVipssaveTargetOptions ¶ added in v1.1.0
func DefaultVipssaveTargetOptions() *VipssaveTargetOptions
DefaultVipssaveTargetOptions creates default value for vips_vipssave_target optional arguments
type WebpPreset ¶
type WebpPreset int
WebpPreset represents VipsForeignWebpPreset type
const ( WebpPresetDefault WebpPreset = C.VIPS_FOREIGN_WEBP_PRESET_DEFAULT WebpPresetPicture WebpPreset = C.VIPS_FOREIGN_WEBP_PRESET_PICTURE WebpPresetPhoto WebpPreset = C.VIPS_FOREIGN_WEBP_PRESET_PHOTO WebpPresetDrawing WebpPreset = C.VIPS_FOREIGN_WEBP_PRESET_DRAWING WebpPresetIcon WebpPreset = C.VIPS_FOREIGN_WEBP_PRESET_ICON WebpPresetText WebpPreset = C.VIPS_FOREIGN_WEBP_PRESET_TEXT WebpPresetLast WebpPreset = C.VIPS_FOREIGN_WEBP_PRESET_LAST )
WebpPreset enum
type WebploadBufferOptions ¶
type WebploadBufferOptions struct { // Page First page to load Page int // N Number of pages to load, -1 for all N int // Scale Factor to scale by Scale float64 // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
WebploadBufferOptions optional arguments for vips_webpload_buffer
func DefaultWebploadBufferOptions ¶
func DefaultWebploadBufferOptions() *WebploadBufferOptions
DefaultWebploadBufferOptions creates default value for vips_webpload_buffer optional arguments
type WebploadOptions ¶
type WebploadOptions struct { // Page First page to load Page int // N Number of pages to load, -1 for all N int // Scale Factor to scale by Scale float64 // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
WebploadOptions optional arguments for vips_webpload
func DefaultWebploadOptions ¶
func DefaultWebploadOptions() *WebploadOptions
DefaultWebploadOptions creates default value for vips_webpload optional arguments
type WebploadSourceOptions ¶
type WebploadSourceOptions struct { // Page First page to load Page int // N Number of pages to load, -1 for all N int // Scale Factor to scale by Scale float64 // Memory Force open via memory Memory bool // Access Required access pattern for this file Access Access // FailOn Error level to fail on FailOn FailOn // Revalidate Don't use a cached result for this operation Revalidate bool }
WebploadSourceOptions optional arguments for vips_webpload_source
func DefaultWebploadSourceOptions ¶
func DefaultWebploadSourceOptions() *WebploadSourceOptions
DefaultWebploadSourceOptions creates default value for vips_webpload_source optional arguments
type WebpsaveBufferOptions ¶
type WebpsaveBufferOptions struct { // Q Q factor Q int // Lossless Enable lossless compression Lossless bool // Preset Preset for lossy compression Preset WebpPreset // SmartSubsample Enable high quality chroma subsampling SmartSubsample bool // NearLossless Enable preprocessing in lossless mode (uses Q) NearLossless bool // AlphaQ Change alpha plane fidelity for lossy compression AlphaQ int // MinSize Optimise for minimum size MinSize bool // Kmin Minimum number of frames between key frames Kmin int // Kmax Maximum number of frames between key frames Kmax int // Effort Level of CPU effort to reduce file size Effort int // TargetSize Desired target size in bytes TargetSize int // Mixed Allow mixed encoding (might reduce file size) Mixed bool // SmartDeblock Enable auto-adjusting of the deblocking filter SmartDeblock bool // Passes Number of entropy-analysis passes (in [1..10]) Passes int // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
WebpsaveBufferOptions optional arguments for vips_webpsave_buffer
func DefaultWebpsaveBufferOptions ¶
func DefaultWebpsaveBufferOptions() *WebpsaveBufferOptions
DefaultWebpsaveBufferOptions creates default value for vips_webpsave_buffer optional arguments
type WebpsaveOptions ¶
type WebpsaveOptions struct { // Q Q factor Q int // Lossless Enable lossless compression Lossless bool // Preset Preset for lossy compression Preset WebpPreset // SmartSubsample Enable high quality chroma subsampling SmartSubsample bool // NearLossless Enable preprocessing in lossless mode (uses Q) NearLossless bool // AlphaQ Change alpha plane fidelity for lossy compression AlphaQ int // MinSize Optimise for minimum size MinSize bool // Kmin Minimum number of frames between key frames Kmin int // Kmax Maximum number of frames between key frames Kmax int // Effort Level of CPU effort to reduce file size Effort int // TargetSize Desired target size in bytes TargetSize int // Mixed Allow mixed encoding (might reduce file size) Mixed bool // SmartDeblock Enable auto-adjusting of the deblocking filter SmartDeblock bool // Passes Number of entropy-analysis passes (in [1..10]) Passes int // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
WebpsaveOptions optional arguments for vips_webpsave
func DefaultWebpsaveOptions ¶
func DefaultWebpsaveOptions() *WebpsaveOptions
DefaultWebpsaveOptions creates default value for vips_webpsave optional arguments
type WebpsaveTargetOptions ¶ added in v1.1.0
type WebpsaveTargetOptions struct { // Q Q factor Q int // Lossless Enable lossless compression Lossless bool // Preset Preset for lossy compression Preset WebpPreset // SmartSubsample Enable high quality chroma subsampling SmartSubsample bool // NearLossless Enable preprocessing in lossless mode (uses Q) NearLossless bool // AlphaQ Change alpha plane fidelity for lossy compression AlphaQ int // MinSize Optimise for minimum size MinSize bool // Kmin Minimum number of frames between key frames Kmin int // Kmax Maximum number of frames between key frames Kmax int // Effort Level of CPU effort to reduce file size Effort int // TargetSize Desired target size in bytes TargetSize int // Mixed Allow mixed encoding (might reduce file size) Mixed bool // SmartDeblock Enable auto-adjusting of the deblocking filter SmartDeblock bool // Passes Number of entropy-analysis passes (in [1..10]) Passes int // Keep Which metadata to retain Keep Keep // Background Background value Background []float64 // PageHeight Set page height for multipage save PageHeight int // Profile Filename of ICC profile to embed Profile string }
WebpsaveTargetOptions optional arguments for vips_webpsave_target
func DefaultWebpsaveTargetOptions ¶ added in v1.1.0
func DefaultWebpsaveTargetOptions() *WebpsaveTargetOptions
DefaultWebpsaveTargetOptions creates default value for vips_webpsave_target optional arguments
type WorleyOptions ¶
type WorleyOptions struct { // CellSize Size of Worley cells CellSize int // Seed Random number seed Seed int }
WorleyOptions optional arguments for vips_worley
func DefaultWorleyOptions ¶
func DefaultWorleyOptions() *WorleyOptions
DefaultWorleyOptions creates default value for vips_worley optional arguments
type WrapOptions ¶
type WrapOptions struct { // X Left edge of input in output X int // Y Top edge of input in output Y int }
WrapOptions optional arguments for vips_wrap
func DefaultWrapOptions ¶
func DefaultWrapOptions() *WrapOptions
DefaultWrapOptions creates default value for vips_wrap optional arguments
type XYZ2LabOptions ¶
type XYZ2LabOptions struct { // Temp Colour temperature Temp []float64 }
XYZ2LabOptions optional arguments for vips_XYZ2Lab
func DefaultXYZ2LabOptions ¶
func DefaultXYZ2LabOptions() *XYZ2LabOptions
DefaultXYZ2LabOptions creates default value for vips_XYZ2Lab optional arguments
type XyzOptions ¶
type XyzOptions struct { // Csize Size of third dimension Csize int // Dsize Size of fourth dimension Dsize int // Esize Size of fifth dimension Esize int }
XyzOptions optional arguments for vips_xyz
func DefaultXyzOptions ¶
func DefaultXyzOptions() *XyzOptions
DefaultXyzOptions creates default value for vips_xyz optional arguments
type ZoneOptions ¶
type ZoneOptions struct { // Uchar Output an unsigned char image Uchar bool }
ZoneOptions optional arguments for vips_zone
func DefaultZoneOptions ¶
func DefaultZoneOptions() *ZoneOptions
DefaultZoneOptions creates default value for vips_zone optional arguments