vips

package
v3.24.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Based on https://cs.opensource.google/go/x/image/+/6944b10b:bmp/reader.go and https://cs.opensource.google/go/x/image/+/6944b10b:bmp/writer.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup()

func DisableLoadSupport

func DisableLoadSupport(it imagetype.Type)

func DisableSaveSupport

func DisableSaveSupport(it imagetype.Type)

func Error

func Error() error

func GetAllocs

func GetAllocs() float64

func GetMem

func GetMem() float64

func GetMemHighwater

func GetMemHighwater() float64

func GifResolutionLimit added in v3.7.0

func GifResolutionLimit() int

func Health added in v3.19.0

func Health() error

func Init

func Init() error

func ResetLoadSupport

func ResetLoadSupport()

func ResetSaveSupport

func ResetSaveSupport()

func Shutdown

func Shutdown()

func SupportsLoad

func SupportsLoad(it imagetype.Type) bool

func SupportsSave

func SupportsSave(it imagetype.Type) bool

Types

type Color

type Color struct{ R, G, B uint8 }

func ColorFromHex

func ColorFromHex(hexcolor string) (Color, error)

type Image

type Image struct {
	VipsImage *C.VipsImage
}

func (*Image) ApplyFilters added in v3.7.1

func (img *Image) ApplyFilters(blurSigma, sharpSigma float32, pixelatePixels int) error

func (*Image) ApplyWatermark

func (img *Image) ApplyWatermark(wm *Image, left, top int, opacity float64) error

func (*Image) Arrayjoin

func (img *Image) Arrayjoin(in []*Image) error

func (*Image) CastUchar

func (img *Image) CastUchar() error

func (*Image) Clear

func (img *Image) Clear()

func (*Image) Colorspace

func (img *Image) Colorspace(colorspace C.VipsInterpretation) error

func (*Image) ColourProfileImported added in v3.24.0

func (img *Image) ColourProfileImported() bool

func (*Image) CopyMemory

func (img *Image) CopyMemory() error

func (*Image) Crop

func (img *Image) Crop(left, top, width, height int) error

func (*Image) Embed

func (img *Image) Embed(width, height int, offX, offY int) error

func (*Image) ExportColourProfile

func (img *Image) ExportColourProfile() error

func (*Image) ExportColourProfileToSRGB

func (img *Image) ExportColourProfileToSRGB() error

func (*Image) Extract

func (img *Image) Extract(out *Image, left, top, width, height int) error

func (*Image) Flatten

func (img *Image) Flatten(bg Color) error

func (*Image) Flip

func (img *Image) Flip() error

func (*Image) GetBlob added in v3.5.0

func (img *Image) GetBlob(name string) ([]byte, error)

func (*Image) GetDouble added in v3.16.0

func (img *Image) GetDouble(name string) (float64, error)

func (*Image) GetDoubleDefault added in v3.16.0

func (img *Image) GetDoubleDefault(name string, def float64) (float64, error)

func (*Image) GetInt

func (img *Image) GetInt(name string) (int, error)

func (*Image) GetIntDefault

func (img *Image) GetIntDefault(name string, def int) (int, error)

func (*Image) GetIntSlice

func (img *Image) GetIntSlice(name string) ([]int, error)

func (*Image) GetIntSliceDefault

func (img *Image) GetIntSliceDefault(name string, def []int) ([]int, error)

func (*Image) HasAlpha

func (img *Image) HasAlpha() bool

func (*Image) Height

func (img *Image) Height() int

func (*Image) ImportColourProfile

func (img *Image) ImportColourProfile() error

func (*Image) IsAnimated

func (img *Image) IsAnimated() bool

func (*Image) IsLinear added in v3.18.2

func (img *Image) IsLinear() bool

func (*Image) IsRGB added in v3.14.0

func (img *Image) IsRGB() bool

func (*Image) LineCache added in v3.20.0

func (img *Image) LineCache(lines int) error

func (*Image) LinearColourspace

func (img *Image) LinearColourspace() error

func (*Image) Load

func (img *Image) Load(imgdata *imagedata.ImageData, shrink int, scale float64, pages int) error

func (*Image) LoadThumbnail added in v3.5.0

func (img *Image) LoadThumbnail(imgdata *imagedata.ImageData) error

func (*Image) Orientation

func (img *Image) Orientation() C.int

func (*Image) Pages added in v3.22.0

func (img *Image) Pages() int

func (*Image) Rad2Float

func (img *Image) Rad2Float() error

func (*Image) RemoveColourProfile

func (img *Image) RemoveColourProfile() error

func (*Image) Replicate

func (img *Image) Replicate(width, height int, centered bool) error

func (*Image) Resize

func (img *Image) Resize(wscale, hscale float64) error

func (*Image) RgbColourspace

func (img *Image) RgbColourspace() error

func (*Image) Rotate

func (img *Image) Rotate(angle int) error

func (*Image) Save

func (img *Image) Save(imgtype imagetype.Type, quality int) (*imagedata.ImageData, error)

func (*Image) SetBlob added in v3.5.0

func (img *Image) SetBlob(name string, value []byte)

func (*Image) SetDouble added in v3.16.0

func (img *Image) SetDouble(name string, value float64)

func (*Image) SetInt

func (img *Image) SetInt(name string, value int)

func (*Image) SetIntSlice

func (img *Image) SetIntSlice(name string, value []int)

func (*Image) SmartCrop

func (img *Image) SmartCrop(width, height int) error

func (*Image) Strip

func (img *Image) Strip(keepExifCopyright bool) error

func (*Image) StripAll added in v3.24.0

func (img *Image) StripAll() error

func (*Image) Swap added in v3.5.0

func (img *Image) Swap(in *Image)

func (*Image) TransformColourProfile

func (img *Image) TransformColourProfile() error

func (*Image) Trim

func (img *Image) Trim(threshold float64, smart bool, color Color, equalHor bool, equalVer bool) error

func (*Image) Width

func (img *Image) Width() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL