MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / ApplyFilters

Method ApplyFilters

vips/vips.go:707–717  ·  view source on GitHub ↗
(blurSigma, sharpSigma float64, pixelatePixels int)

Source from the content-addressed store, hash-verified

705}
706
707func (img *Image) ApplyFilters(blurSigma, sharpSigma float64, pixelatePixels int) error {
708 var tmp *C.VipsImage
709
710 if C.vips_apply_filters(img.VipsImage, &tmp, C.double(blurSigma), C.double(sharpSigma), C.int(pixelatePixels)) != 0 {
711 return Error()
712 }
713
714 img.swapAndUnref(tmp)
715
716 return nil
717}
718
719// Type returns the current colorspace interpretation of the image.
720func (img *Image) Type() Interpretation {

Callers 1

applyFiltersMethod · 0.80

Calls 2

swapAndUnrefMethod · 0.95
ErrorFunction · 0.70

Tested by

no test coverage detected